From b54dff65cdc39f30f97c0ad3fb29342888d968bb Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Thu, 9 Jan 2025 18:49:35 +0100 Subject: [PATCH] fix deploy script --- remote-deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote-deploy.sh b/remote-deploy.sh index 7868a9a..981402d 100755 --- a/remote-deploy.sh +++ b/remote-deploy.sh @@ -5,6 +5,6 @@ set -e HOSTNAME=$1 GC_FORCE_UNMAP_ON_GCOLLECT=1 nix build -L ".#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" -#nix copy --no-check-sigs --to "ssh-ng://root@${HOSTNAME}" "./result" -#ssh "root@${HOSTNAME}" nix-env -p /nix/var/nix/profiles/system --set "$(readlink ./result)" -#ssh "root@${HOSTNAME}" /nix/var/nix/profiles/system/bin/switch-to-configuration switch +nix copy --no-check-sigs --to "ssh-ng://root@${HOSTNAME}" "./result" +ssh "root@${HOSTNAME}" nix-env -p /nix/var/nix/profiles/system --set "$(readlink ./result)" +ssh "root@${HOSTNAME}" /nix/var/nix/profiles/system/bin/switch-to-configuration switch