blob: d4a4762f27b3acb93a50a6bb960cf48bf72857d0 [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;
Samuel Shuertb3c6ca72024-02-20 22:51:42 +000024 pinentryFlavor = "tty";
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}