flake.nix: copy secrets for deployment

This commit is contained in:
Astro 2021-03-04 00:47:05 +01:00
parent 9264b271f2
commit ba5943e852
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@
in pkgs.writeScriptBin "${name}-nixos-rebuild" ''
#!${pkgs.runtimeShell}
set -ev
nix-copy-closure --to ${target} ${secrets}
nix-copy-closure --to ${target} ${self}
exec ssh -t ${target} nixos-rebuild --flake ${self}#${name} $@
'';