1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-04-18 02:06:50 +00:00

Fix missing spaces in script

This commit is contained in:
Anil Anar 2022-08-10 11:57:19 +02:00 committed by Pogobanane
parent 2124bcbb8a
commit 5e580b4bdd

View file

@ -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...