Compare commits
2 Commits
07b92b5df3
...
292a4c4d46
Author | SHA1 | Date |
---|---|---|
Daniel Barlow | 292a4c4d46 | |
Daniel Barlow | 4cb4399a1c |
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
ssh_command=${SSH_COMMAND-ssh}
|
||||
target_host=$1
|
||||
shift
|
||||
|
||||
|
@ -10,5 +11,5 @@ fi
|
|||
|
||||
toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link)
|
||||
min-copy-closure $target_host $toplevel
|
||||
ssh $target_host cp -P $toplevel/bin/\* /
|
||||
ssh $target_host reboot
|
||||
$ssh_command $target_host cp -v -fP $toplevel/bin/* /persist
|
||||
$ssh_command $target_host "sync; reboot"
|
||||
|
|
|
@ -13,6 +13,7 @@ let
|
|||
in {
|
||||
imports = [
|
||||
../../vanilla-configuration.nix
|
||||
../../modules/jffs2.nix
|
||||
];
|
||||
config = {
|
||||
services.sshd = longrun {
|
||||
|
|
|
@ -4,7 +4,7 @@ let
|
|||
inherit (pkgs.liminix.services) oneshot longrun bundle target;
|
||||
in rec {
|
||||
imports = [
|
||||
./modules/standard.nix
|
||||
./modules/tftpboot.nix
|
||||
./modules/wlan.nix
|
||||
];
|
||||
services.loopback = config.hardware.networkInterfaces.lo;
|
||||
|
|
Loading…
Reference in New Issue