fix deploy script

This commit is contained in:
Patrick Neff 2025-01-09 18:49:35 +01:00
parent b4f70cfed7
commit b54dff65cd
1 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,6 @@ set -e
HOSTNAME=$1 HOSTNAME=$1
GC_FORCE_UNMAP_ON_GCOLLECT=1 nix build -L ".#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel" 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" 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-env -p /nix/var/nix/profiles/system --set "$(readlink ./result)"
#ssh "root@${HOSTNAME}" /nix/var/nix/profiles/system/bin/switch-to-configuration switch ssh "root@${HOSTNAME}" /nix/var/nix/profiles/system/bin/switch-to-configuration switch