aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/tools/gpg/default.nix
blob: 7d6913738bd653451a7e9e12f919da87b8b0d87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ options, config, lib, pkgs, namespace, ... }:

with lib; with lib.${namespace}; let
  cfg = config.${namespace}.tools.gpg;
  impermanence = config.${namespace}.impermanence;
in {
  options.${namespace}.tools.gpg = with types; {
    enable = mkEnableOption "gpg";
  };

  config = mkIf cfg.enable {
    home.persistence.${impermanence.secure.location} = {
      directories = [
        ".gnupg"
      ];
    };

    programs.gpg.enable = true;
  };
}