forked from M-Labs/defenestrate
free target env of seal-off command
This commit is contained in:
parent
be9ab28418
commit
9921e719ed
4
README
4
README
|
@ -10,5 +10,7 @@ On target device:
|
||||||
* Copy device database to ~/artiq
|
* Copy device database to ~/artiq
|
||||||
* Set timezone and kb layout
|
* Set timezone and kb layout
|
||||||
* Comment out openssh.authorizedKeys.keys
|
* Comment out openssh.authorizedKeys.keys
|
||||||
* sudo seal-off
|
|
||||||
* history clear
|
* history clear
|
||||||
|
|
||||||
|
On build device:
|
||||||
|
* cat sealoff.sh | ssh rabi@artiq "sudo sh"
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
{ config, pkgs, artiq, ... }:
|
{ config, pkgs, artiq, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
sealOff = pkgs.writeShellScriptBin "seal-off"
|
|
||||||
''
|
|
||||||
set -e
|
|
||||||
nixos-rebuild boot
|
|
||||||
nix-collect-garbage -d
|
|
||||||
'';
|
|
||||||
|
|
||||||
in {
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
@ -44,7 +36,6 @@ in {
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
sealOff
|
|
||||||
wget
|
wget
|
||||||
vim
|
vim
|
||||||
gitAndTools.gitFull
|
gitAndTools.gitFull
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
nixos-rebuild boot
|
||||||
|
nix-collect-garbage -d
|
Loading…
Reference in New Issue