summaryrefslogtreecommitdiff
path: root/modules/gpg.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gpg.nix')
-rw-r--r--modules/gpg.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/gpg.nix b/modules/gpg.nix
index e7b6984..0fa48e6 100644
--- a/modules/gpg.nix
+++ b/modules/gpg.nix
@@ -1,9 +1,16 @@
-{pkgs, config, lib, ... }:
-let cfg = config.addons.gpg; in
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}:
+let
+ cfg = config.addons.gpg;
+in
{
options.addons.gpg = {
- enable = lib.mkEnableOption "Allow gpg for all users";
- };
+ enable = lib.mkEnableOption "Allow gpg for all users";
+ };
config = lib.mkMerge ([
(lib.mkIf cfg.enable {
@@ -11,8 +18,8 @@ let cfg = config.addons.gpg; in
agent = {
enable = true;
};
- };
+ };
})
]);
-}
+}