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 {
|
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"
|
||||||
|
|
Reference in a new issue