blob: 17122ec86864258bf7d5d7a9588c730de413d7f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
config,
pkgs,
lib,
...
}:
let
passStore = config.xdg.dataHome + "/pass";
GNUPGHome = config.xdg.dataHome + "/gnupg";
in
{
home = {
file."${GNUPGHome}/gpg-agent.conf".text = ''
pinentry-program ${lib.getExe pkgs.pinentry-bemenu}
'';
packages = with pkgs; [
pinentry-bemenu
(pass.withExtensions (exts: [ exts.pass-otp ]))
];
sessionVariables = {
PASSWORD_STORE_DIR = passStore;
GNUPGHOME = GNUPGHome;
};
};
}
|