blob: 3387861cb366b4cfbc37f3c0aec2b8c9ed600530 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ 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;
};
};
}
|