nixos-config/profiles/workspace/gpg.nix

24 lines
579 B
Nix
Raw Normal View History

2021-05-10 04:04:18 +04:00
{ pkgs, 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;
2021-05-10 04:04:18 +04:00
pinentryFlavor = "gtk2";
};
2021-06-07 19:22:59 +04:00
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
};
};
}