From 41c612d3fd8ff663b0d78700ce09a280a9775498 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 13 Jan 2020 18:14:08 -0500 Subject: [PATCH] Use nix-shell for 'make secrets.nix' To prevent dependency race conditions --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9d6a1fa..e8f3f612 100644 --- a/Makefile +++ b/Makefile @@ -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