prelude: make <secrets> available
This commit is contained in:
parent
36738fe605
commit
d65a534022
@ -53,8 +53,10 @@ deploy() {(
|
|||||||
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
|
| rsync -f '. -' -zvrlptD --delete-excluded ./ "$target":/etc/nixos/
|
||||||
|
|
||||||
clone_or_update "$target" "$nixpkgs_dir" "$git_url" "$git_rev"
|
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
|
# rsync_filter : nixos-config -> rsync-filter
|
||||||
@ -98,6 +100,7 @@ list_module_imports() {
|
|||||||
set -- "./$1"
|
set -- "./$1"
|
||||||
fi
|
fi
|
||||||
imports=$(nix-instantiate \
|
imports=$(nix-instantiate \
|
||||||
|
-I secrets=secrets \
|
||||||
--strict \
|
--strict \
|
||||||
--json \
|
--json \
|
||||||
--eval \
|
--eval \
|
||||||
|
Loading…
Reference in New Issue
Block a user