From 7e45f16948a802a3810d915b315f810f83fe8900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 11 Oct 2022 13:15:50 +0200 Subject: hosts.sh: support not only devices and use screen to detach switch --- common.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common.sh') diff --git a/common.sh b/common.sh index 1af840d..7cc262a 100644 --- a/common.sh +++ b/common.sh @@ -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 -- cgit v1.2.3