summaryrefslogtreecommitdiff
path: root/modules/gpg.nix
blob: b2651b99c28f1dd86a1d7436a11333bd5e01ec4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  config,
  lib,
  ...
}:
let
  cfg = config.addons.gpg;
in
{
  options.addons.gpg = {
    enable = lib.mkEnableOption "Allow gpg for all users";
  };

  config = lib.mkMerge ([
    (lib.mkIf cfg.enable {
      programs.gnupg = {
        agent = {
          enable = true;
        };
      };
    })
  ]);

}