34 lines
837 B
Nix
Raw Normal View History

2022-02-16 13:31:15 +03:00
{ pkgs, lib, config, ... }: {
2021-06-07 18:22:59 +03:00
services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ];
2021-06-08 19:35:21 +03:00
persist.derivative.directories = [ "/home/balsoft/.local/share/gnupg" ];
2021-01-21 21:13:53 +03:00
home-manager.users.balsoft = {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
2021-05-10 03:04:18 +03:00
pinentryFlavor = "gtk2";
};
2021-06-07 18:22:59 +03:00
2022-02-16 13:31:15 +03:00
systemd.user.services.gpg-agent = {
Service = {
Environment = lib.mkForce [
"GPG_TTY=/dev/tty1"
"DISPLAY=:0"
"GNUPGHOME=${config.home-manager.users.balsoft.xdg.dataHome}/gnupg"
];
};
};
2021-05-10 03:04:18 +03:00
programs.gpg = {
enable = true;
homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg";
2021-06-07 18:22:59 +03:00
scdaemonSettings = {
disable-ccid = true;
reader-port = "Yubico Yubi";
};
2021-01-21 21:13:53 +03:00
};
};
}