1
0
forked from c3d2/nix-config

flake.nix: flakify with git

This commit is contained in:
Astro 2021-03-06 01:14:19 +01:00
parent b26478db13
commit f8830c99da

View File

@ -39,7 +39,7 @@
nix-copy-closure --to ${target} ${self}
if [ "$1" = "--flakify" ]; then
shift
exec ssh -t ${target} "nix-shell -p nixFlakes --command \"_NIXOS_REBUILD_REEXEC=1 nixos-rebuild --flake ${self}#${name} \"$@"
exec ssh -t ${target} "nix-shell -p nixFlakes -p git --command \"_NIXOS_REBUILD_REEXEC=1 nixos-rebuild --flake ${self}#${name} \"$@"
else
exec ssh -t ${target} nixos-rebuild --flake ${self}#${name} $@
fi