summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/prelude.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/prelude.sh b/lib/prelude.sh
index cd85b1397..2adfb5651 100644
--- a/lib/prelude.sh
+++ b/lib/prelude.sh
@@ -53,8 +53,10 @@ deploy() {(
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
clone_or_update "$target" "$nixpkgs_dir" "$git_url" "$git_rev"
- ssh "$target" nixos-rebuild switch -I nixos-config=/etc/nixos/"$main" -I nixpkgs="$nixpkgs_dir"
-
+ ssh "$target" nixos-rebuild switch \
+ -I nixos-config=/etc/nixos/"$main" \
+ -I nixpkgs="$nixpkgs_dir" \
+ -I secrets=/etc/nixos/secrets \
)}
# rsync_filter : nixos-config -> rsync-filter
@@ -98,6 +100,7 @@ list_module_imports() {
set -- "./$1"
fi
imports=$(nix-instantiate \
+ -I secrets=secrets \
--strict \
--json \
--eval \