forked from Fediversity/simple-nixos-fediverse
use stable CLI for deploying
This commit is contained in:
parent
dfb02038ac
commit
cc3ccbc59a
|
@ -3,7 +3,7 @@ name: config:
|
|||
writeShellApplication {
|
||||
name = "deploy";
|
||||
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
|
||||
ssh ${name} << EOF
|
||||
nix-env -p /nix/var/nix/profiles/system --set "$result"
|
||||
|
|
Reference in a new issue