forked from colonelpanic/dotfiles
[NixOS] Fix environment variables in gpg import
This commit is contained in:
parent
cfbb4474c6
commit
ebb5e20364
@ -23,8 +23,9 @@
|
|||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
Restart = "onfailure";
|
Restart = "onfailure";
|
||||||
ExecStart =
|
ExecStart =
|
||||||
let path = config.age.secrets.gpg-keys.path;
|
let replace = builtins.replaceStrings [ "$XDG_RUNTIME_DIR" ] [ "\${XDG_RUNTIME_DIR}" ];
|
||||||
passphrasePath = config.age.secrets.gpg-passphrase.path;
|
path = replace config.age.secrets.gpg-keys.path;
|
||||||
|
passphrasePath = replace config.age.secrets.gpg-passphrase.path;
|
||||||
in "${pkgs.gnupg}/bin/gpg --pinentry-mode loopback --passphrase-file ${passphrasePath} --import ${path}";
|
in "${pkgs.gnupg}/bin/gpg --pinentry-mode loopback --passphrase-file ${passphrasePath} --import ${path}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user