home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

gnupg.nix (351B)


      1 { config, lib, pkgs, ... }:
      2 let
      3   inherit (lib) mkEnableOption mkIf;
      4   cfg = config.modules.shell.gnupg;
      5 in
      6 {
      7   options.modules.shell.gnupg = {
      8     enable = mkEnableOption "enable gnupg";
      9   };
     10   config = mkIf cfg.enable {
     11     environment = {
     12       # variables.GNUPGHOME = "$XDG_CONFIG_HOME/gnupg";
     13       systemPackages = [ pkgs.gnupg ];
     14     };
     15   };
     16 }