blob: 9384c965e61e8e441cf867a8f7db515485d57295 [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 {
13 programs.gpg.enable = true;
14 services.gpg-agent = {
15 enable = true;
Samuel Shuertb3c6ca72024-02-20 22:51:42 +000016 pinentryFlavor = "tty";
Skyler Grey695fa632024-02-17 22:45:41 +000017 enableZshIntegration = config.chimera.shell.zsh.enable;
18 enableBashIntegration = config.chimera.shell.bash.enable;
19 };
20 };
Samuel Shuert659b5642024-02-23 20:47:43 +000021}