summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-05-20 16:10:42 +0200
committertv <tv@krebsco.de>2015-05-20 16:10:42 +0200
commit0e9b0406dce9f0b7482764a63456c0486b042993 (patch)
tree3ce5851bbde8f91569a1df5cfb91498577d40b44 /lib
parentef7656dd9963f6f9248b56f1df1fe32d250c93b7 (diff)
prelude: make <secrets> available
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 cd85b13..2adfb56 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 \