diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-11 13:15:50 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-11 13:15:50 +0200 |
commit | 7e45f16948a802a3810d915b315f810f83fe8900 (patch) | |
tree | 95132766f0e9e82c8d48472342d946cd7c53a51c /common.sh | |
parent | c57793639f332984bbe90b3c991fef931b915c29 (diff) | |
download | nixos-personal-7e45f16948a802a3810d915b315f810f83fe8900.tar.gz nixos-personal-7e45f16948a802a3810d915b315f810f83fe8900.tar.bz2 nixos-personal-7e45f16948a802a3810d915b315f810f83fe8900.zip |
hosts.sh: support not only devices and use screen to detach switch
Diffstat (limited to 'common.sh')
-rw-r--r-- | common.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -161,8 +161,7 @@ setenv() { local _store _switchop printf -v _store '%q' "$store" printf -v _switchop '%q' "$switchop" - _tssh "$device" \ - "sudo nix-env --profile /nix/var/nix/profiles/system --set '$_store' && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration '$_switchop'" + _tssh "$device" "sudo '$_store/bin/nixos-system' -s '$_switchop'" else warning "The latest system might have been already set." fi |