summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-21 17:18:54 +0200
committerSilas Schöffel <sils@sils.li>2024-04-22 17:02:26 +0200
commitf1fc3a0d2684d28a862f186dd509259b339c81c0 (patch)
tree68b18fca46014ec206615c79d5d3fd4ef0879f4a
parentflake.lock: update (diff)
downloadnix-config-f1fc3a0d2684d28a862f186dd509259b339c81c0.tar.gz
nix-config-f1fc3a0d2684d28a862f186dd509259b339c81c0.zip
mail: init module
-rw-r--r--modules/hm/sils/default.nix1
-rw-r--r--modules/hm/sils/mail.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix
index a1665ee..72767ef 100644
--- a/modules/hm/sils/default.nix
+++ b/modules/hm/sils/default.nix
@@ -2,5 +2,6 @@
   imports = [
     ./firefox
     ./jameica.nix
+    ./mail.nix
   ];
 }
diff --git a/modules/hm/sils/mail.nix b/modules/hm/sils/mail.nix
new file mode 100644
index 0000000..77d085c
--- /dev/null
+++ b/modules/hm/sils/mail.nix
@@ -0,0 +1,18 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.sils.mail;
+in {
+  options.sils.mail.enable = lib.mkOption {
+    type = lib.types.bool;
+    default = false;
+    description = "Enable sophisticated mail setup";
+  };
+  config = lib.mkIf cfg.enable {
+    programs.neomutt = {
+      enable = true;
+    };
+  };
+}