From 5e580b4bdd9efc7bb50e1a0f93a0bba2442fe16c Mon Sep 17 00:00:00 2001 From: Anil Anar Date: Wed, 10 Aug 2022 11:57:19 +0200 Subject: [PATCH] Fix missing spaces in script --- modules/home-manager/sops.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index c6df9f3..3d345d5 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -84,7 +84,9 @@ let manifest = manifestFor "" cfg.secrets; - script = toString (pkgs.writeShellScript "sops-nix-user" ((lib.optionalString (cfg.gnupg.home != null) "export SOPS_GPG_EXEC=${pkgs.gnupg}/bin/gpg") + script = toString (pkgs.writeShellScript "sops-nix-user" ((lib.optionalString (cfg.gnupg.home != null) '' + export SOPS_GPG_EXEC=${pkgs.gnupg}/bin/gpg + '') + (lib.optionalString cfg.age.generateKey '' if [[ ! -f '${cfg.age.keyFile}' ]]; then echo generating machine-specific age key...