Skyler Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 1 | { |
| 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 Grey | 6390443 | 2024-02-20 23:25:45 +0000 | [diff] [blame] | 13 | 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 Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 22 | services.gpg-agent = { |
| 23 | enable = true; |
Skyler Grey | 811c005 | 2024-06-10 17:31:53 +0000 | [diff] [blame] | 24 | pinentryPackage = pkgs.pinentry-gnome3; |
Skyler Grey | 695fa63 | 2024-02-17 22:45:41 +0000 | [diff] [blame] | 25 | enableZshIntegration = config.chimera.shell.zsh.enable; |
| 26 | enableBashIntegration = config.chimera.shell.bash.enable; |
| 27 | }; |
| 28 | }; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 29 | } |