about summary refs log tree commit diff
path: root/configuration.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-06-06T14·26+0200
committerVincent Ambo <mail@tazj.in>2018-06-06T14·26+0200
commit1239f26e8a771b4040e8ebd557de0738b4d7d24a (patch)
tree1134cc0c0cac7f4867a81f97e03cdb5371e6c79f /configuration.nix
parent969c0071820b29061d4efe3d230831ae5f7c97b3 (diff)
feat(mail): Import email configuration into Nix
This moves my email configuration into NixOS, including the following
features:

1. Replaced the NixOS-builtin offlineimap user service with a custom
   one that runs notmuch-indexing as part of the systemd unit instead
   of a postsynchook, which is significantly more reliable.
2. Adds configuration for notmuch and its tagging.
3. Adds configuration for OfflineIMAP & MSMTP.

Relevant emacs configuration has also been added to my emacs.d
repository.
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/configuration.nix b/configuration.nix
index de8fcdd395ff..e4a9574292f2 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -7,11 +7,12 @@
 {
   imports =
     [
+    ./desktop.nix
+    ./dotfiles.nix
     ./hardware-configuration.nix
     ./local-configuration.nix
+    ./mail.nix
     ./packages.nix
-    ./desktop.nix
-    ./dotfiles.nix
     ];
 
   # Use the systemd-boot EFI boot loader.
@@ -61,12 +62,6 @@
   # Enable GNOME keyring (required for Evolution)
   services.gnome3.gnome-keyring.enable = true;
 
-  # Enable OfflineIMAP (configuration itself is user-data)
-  services.offlineimap = {
-    install = true;
-    path    = with pkgs; [ pass notmuch ];
-  };
-
   virtualisation = {
     # Configure Docker (with socket activation):
     # Side note: ... why is this in virtualisation? ...