blob: 8d4e891d5e4579f2f03703f28579d22ee91bdbc1 [file] [log] [blame]
Skyler Grey695fa632024-02-17 22:45:41 +00001{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7{
8 options.chimera.gpg = {
9 enable = lib.mkEnableOption "Enable gpg";
10 };
11
12 config = lib.mkIf config.chimera.gpg.enable {
Skyler Grey63904432024-02-20 23:25:45 +000013 programs.gpg = {
14 enable = true;
15
16 scdaemonSettings = lib.mkIf config.chimera.yubikey.enable {
17 reader-port = "Yubico Yubi";
18 disable-ccid = true;
19 };
20 };
21
Skyler Grey695fa632024-02-17 22:45:41 +000022 services.gpg-agent = {
23 enable = true;
Skyler Grey811c0052024-06-10 17:31:53 +000024 pinentryPackage = pkgs.pinentry-gnome3;
Skyler Grey695fa632024-02-17 22:45:41 +000025 enableZshIntegration = config.chimera.shell.zsh.enable;
26 enableBashIntegration = config.chimera.shell.bash.enable;
27 };
28 };
Samuel Shuert659b5642024-02-23 20:47:43 +000029}