about summary refs log tree commit diff
path: root/modules/workstation/mail/notmuch
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workstation/mail/notmuch')
-rw-r--r--modules/workstation/mail/notmuch/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/workstation/mail/notmuch/default.nix b/modules/workstation/mail/notmuch/default.nix
index 46aa17374a0e..418a4b5ff666 100644
--- a/modules/workstation/mail/notmuch/default.nix
+++ b/modules/workstation/mail/notmuch/default.nix
@@ -9,4 +9,11 @@
 
   users.users.qyliss.xdg.config.paths."notmuch/config" =
     pkgs.copyPathToStore ./config;
+
+  systemd.services.notmuch = {
+    serviceConfig.Type = "oneshot";
+    environment.NOTMUCH_CONFIG = "/etc/xdg/nixos/per-user/qyliss/notmuch/config";
+    serviceConfig.ExecStart = "${pkgs.notmuch}/bin/notmuch new";
+    serviceConfig.User = "qyliss";
+  };
 }