Use nix-shell for 'make secrets.nix'

To prevent dependency race conditions
This commit is contained in:
Henrik Lissner 2020-01-13 18:14:08 -05:00
parent e5639187da
commit 41c612d3fd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -44,7 +44,7 @@ $(NIXOS_PREFIX)/configuration.nix:
@echo "import $(PWD)/dotfiles \"$$(hostname)\"" | sudo tee "$(NIXOS_PREFIX)/configuration.nix"
secrets.nix: secrets.nix.gpg
gpg -dq $< > $@
@nix-shell -p gnupg --run "gpg -dq $< > $@"
# Convenience aliases