Use nix-shell for 'make secrets.nix'
To prevent dependency race conditions
This commit is contained in:
parent
e5639187da
commit
41c612d3fd
2
Makefile
2
Makefile
|
@ -44,7 +44,7 @@ $(NIXOS_PREFIX)/configuration.nix:
|
||||||
@echo "import $(PWD)/dotfiles \"$$(hostname)\"" | sudo tee "$(NIXOS_PREFIX)/configuration.nix"
|
@echo "import $(PWD)/dotfiles \"$$(hostname)\"" | sudo tee "$(NIXOS_PREFIX)/configuration.nix"
|
||||||
|
|
||||||
secrets.nix: secrets.nix.gpg
|
secrets.nix: secrets.nix.gpg
|
||||||
gpg -dq $< > $@
|
@nix-shell -p gnupg --run "gpg -dq $< > $@"
|
||||||
|
|
||||||
|
|
||||||
# Convenience aliases
|
# Convenience aliases
|
||||||
|
|
Loading…
Reference in a new issue