summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-10-30 12:06:44 -0400
committerBen Sima <ben@bsima.me>2020-10-30 12:06:44 -0400
commit46da79cb9474bc1280cc5a1ff4124956af00742b (patch)
tree402e9e0c03df195a6ac0ddde0bcc76256b1bf62b
parent6b2c03d3bb8ac1de2d9431fe08c12b45ec193695 (diff)
Move some email settings around
-rw-r--r--darwin.nix17
-rw-r--r--lib/email.nix4
-rw-r--r--linux.nix5
3 files changed, 17 insertions, 9 deletions
diff --git a/darwin.nix b/darwin.nix
index d91c25e..c278623 100644
--- a/darwin.nix
+++ b/darwin.nix
@@ -6,8 +6,20 @@ let
gpgid = "D09299626FA78AF8";
in
{
- imports = [ ./lib/common.nix ];
- home.sessionVariables.PATH = "/usr/local/opt/mysql@5.7/bin:${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH";
+ imports = [
+ ./lib/common.nix
+ ./lib/email.nix
+ ];
+ home = {
+ sessionVariables.PATH = "/usr/local/opt/mysql@5.7/bin:${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH";
+ packages = with pkgs; [
+ muchsync
+ hledger-web
+ hledger-ui
+ (haskellPackages.ghcWithPackages (ps: with ps; [hledger]))
+ ];
+ };
+
programs = {
git = {
@@ -43,6 +55,5 @@ in
enable = true;
extraPackages = epkgs: import ./lib/emacs-packages.nix { inherit epkgs; };
};
-
};
}
diff --git a/lib/email.nix b/lib/email.nix
index 17ec44d..449e3d8 100644
--- a/lib/email.nix
+++ b/lib/email.nix
@@ -69,7 +69,9 @@ in
notmuch = {
enable = true;
new.tags = [ "new" ];
- hooks = {};
+ hooks = {
+ postNew = "${pkgs.afew}/bin/afew -tn && ${pkgs.afew}/bin/afew -t tag:inbox";
+ };
extraConfig = {
search = {
exclude_tags = "deleted;spam;";
diff --git a/linux.nix b/linux.nix
index fb8fb76..edbaf9c 100644
--- a/linux.nix
+++ b/linux.nix
@@ -423,10 +423,5 @@ in
rofi = {
enable = true;
};
-
- notmuch = {
- enable = true;
- hooks.postNew = "${pkgs.afew}/bin/afew -tn && ${pkgs.afew}/bin/afew -t tag:inbox";
- };
};
}