use stable CLI for deploying

This commit is contained in:
Valentin Gagarin 2024-09-25 12:23:27 +02:00
parent dfb02038ac
commit cc3ccbc59a

View file

@ -3,7 +3,7 @@ name: config:
writeShellApplication { writeShellApplication {
name = "deploy"; name = "deploy";
text = '' text = ''
result="$(nix build ${./.}#nixosConfigurations.${name} --eval-store auto --store ssh-ng://${name})" result="$(nix-build ${./.} -A nixosConfigurations.${name} --eval-store auto --store ssh-ng://${name})"
# shellcheck disable=SC2087 # shellcheck disable=SC2087
ssh ${name} << EOF ssh ${name} << EOF
nix-env -p /nix/var/nix/profiles/system --set "$result" nix-env -p /nix/var/nix/profiles/system --set "$result"