2022-02-16 14:31:15 +04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
2021-06-07 19:22:59 +04:00
|
|
|
services.pcscd.enable = true;
|
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
|
|
|
2021-06-08 20:35:21 +04:00
|
|
|
persist.derivative.directories = [ "/home/balsoft/.local/share/gnupg" ];
|
|
|
|
|
2021-01-21 22:13:53 +04:00
|
|
|
home-manager.users.balsoft = {
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
2023-02-16 18:51:34 +04:00
|
|
|
pinentryFlavor = "qt";
|
2021-05-10 04:04:18 +04:00
|
|
|
};
|
2021-06-07 19:22:59 +04:00
|
|
|
|
2022-02-16 14:31:15 +04: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 04:04:18 +04:00
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg";
|
2021-06-07 19:22:59 +04:00
|
|
|
scdaemonSettings = {
|
|
|
|
disable-ccid = true;
|
|
|
|
reader-port = "Yubico Yubi";
|
|
|
|
};
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|