add goimapnotify and service

This commit is contained in:
Matt Nish-Lapidus 2025-06-04 11:53:25 -04:00
parent 434c4cdb7a
commit f0a8ea0760
4 changed files with 53 additions and 37 deletions

View file

@ -1,4 +1,7 @@
{ pkgs, ... }:
{ nix-config, pkgs, ... }:
let
pwdcmd = "${nix-config.packages.x86_64-linux.rbw-latest}/bin/rbw";
in
{
accounts.email = {
maildirBasePath = "/home/emenel/.maildir";
@ -19,7 +22,12 @@
};
msmtp.enable = true;
flavor = "fastmail.com";
passwordCommand = "rbw get mu4e-fastmail";
passwordCommand = "${pwdcmd} get mu4e-fastmail";
imapnotify = {
enable = true;
boxes = [ "Inbox" ];
onNotify = "${pkgs.isync}/bin/mbsync -a";
};
};
"admin@studyoftime.org" = {
@ -35,7 +43,7 @@
};
};
msmtp.enable = true;
passwordCommand = "rbw get admin@studyoftime";
passwordCommand = "${pwdcmd} get admin@studyoftime";
imap.host = "imap.dreamhost.com";
smtp.host = "imap.dreamhost.com";
userName = "admin@studyoftime.org";
@ -43,6 +51,12 @@
};
};
services.imapnotify = {
enable = true;
package = pkgs.goimapnotify;
path = [ pkgs.mu pkgs.isync pkgs.goimapnotify nix-config.packages.x86_64-linux.rbw-latest ];
};
programs = {
mu.enable = true;
mbsync = {

View file

@ -6,6 +6,8 @@
razer-cli
goimapnotify
cmake
cmake-format