summaryrefslogtreecommitdiff
path: root/modules/gpg.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-08-17 11:25:33 +0200
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-08-17 11:25:33 +0200
commit1be972048dd58218cd689ecb5cac562eb398b751 (patch)
tree203f19ee01ad5fe28f2868e8c1451f9538e4ab12 /modules/gpg.nix
parent3cd59d4670711e34a50adea912c3b0894883e490 (diff)
refreshed config
Diffstat (limited to 'modules/gpg.nix')
-rw-r--r--modules/gpg.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/gpg.nix b/modules/gpg.nix
new file mode 100644
index 0000000..e7b6984
--- /dev/null
+++ b/modules/gpg.nix
@@ -0,0 +1,18 @@
+{pkgs, 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;
+ };
+ };
+ })
+ ]);
+
+}