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

66
flake.lock generated
View file

@ -89,11 +89,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1749000515, "lastModified": 1749028858,
"narHash": "sha256-XFbY5WbxkTFzMGk3VkSLEYto2lrafaWpS++NEpXlR50=", "narHash": "sha256-05uhzpbhWOPTQGp00zZhbVwfscHLmUCl3E2ZyfNnaQo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "b23f5ee5d26ee40cafbec9e3d1c4d9cefdf93c27", "rev": "341c6324d0780f1846c77b1a13c18934172ca9dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -409,11 +409,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1748979197, "lastModified": 1749038741,
"narHash": "sha256-mKYwYcO9RmA2AcAFIXGDBOw5iv/fbjw6adWvMbnfIuk=", "narHash": "sha256-lD8lB9flJWTeeUcoEsCcwSGSowQUGrsbpj2d1rWxopA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "34a13086148cbb3ae65a79f753eb451ce5cac3d3", "rev": "3830a21aa2313239b582e4e4ac97f0b25243cb7a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -592,11 +592,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1747635830, "lastModified": 1749017651,
"narHash": "sha256-IypoV7crmhQ4llD0n4qqO4XTRNAAbHfA+2oiTiq2qpk=", "narHash": "sha256-+WLY8tYw2+i3mf/pUI4ecrQjmyhSUIb5cGCCa9ZQDP4=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprlock", "repo": "hyprlock",
"rev": "da1d076d849fc0f298c1d287bddd04802bf7d0f9", "rev": "8455fc8ca6432a72313cd285488333ba5977fbe5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -827,11 +827,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1748942204, "lastModified": 1749035055,
"narHash": "sha256-27Pt/CGa+AD+EdJER8W7Ekgm+8x1Q4nuw8m4UBTnaOM=", "narHash": "sha256-V5wSo296/hPAfU42TEWJG7BqyQI93kLcxoCHVZikROM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nh", "repo": "nh",
"rev": "f761c6f35dd392bbfea1fc7861a25e0494b96b32", "rev": "73872b3dc58e49cb9a2d80b2f6b16a7133d76434",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -852,11 +852,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1748977926, "lastModified": 1749024242,
"narHash": "sha256-4tERoqAxHSwcF86j1xxqXghxkJJkbqTrAoYXLPU//jg=", "narHash": "sha256-znBNOLYgHgrR8IeboGHOd/pWRF9JQnW8AGL5MNQ2EwE=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "89ce8038a15e06fad526523982424b08083cec77", "rev": "6d2d0baa2f9568b7c2655d8b3a8d6aed8a81cd71",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -885,11 +885,11 @@
"niri-unstable": { "niri-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1748971878, "lastModified": 1749019222,
"narHash": "sha256-sgK5dsqsRX2xfkwOy8Wsi8oAuDvAZ8z2aBgN3vk0QLw=", "narHash": "sha256-Zz2QkGVkK75iAaOBTT5+ILCg/l2HhrxzPJMd7Jr/O28=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "abac28a65c6c742114ef292221dd26e2a3a2f04b", "rev": "9858599ac12ab9592c08e062b2301e7c24429c81",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -982,11 +982,11 @@
"website-builder": "website-builder" "website-builder": "website-builder"
}, },
"locked": { "locked": {
"lastModified": 1748954533, "lastModified": 1749021695,
"narHash": "sha256-3lCB7zSfURSqZTulQpuopsa1mQs89FO+97CemlfxxDY=", "narHash": "sha256-vuQ/Bw4xwMqKqhbPp90Y1XyC3+mdh37nN3P+gAx3U2Y=",
"owner": "rasmus-kirk", "owner": "rasmus-kirk",
"repo": "nixarr", "repo": "nixarr",
"rev": "460d20269c280d9607fb816f3f7a03d55fdf1a9c", "rev": "308818029caaefc969bbdb70afa9528a68635d45",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1090,11 +1090,11 @@
}, },
"nixpkgs-stable_3": { "nixpkgs-stable_3": {
"locked": { "locked": {
"lastModified": 1748810746, "lastModified": 1748995628,
"narHash": "sha256-1na8blYvU1F6HLwx/aFjrhUqpqZ0SCsnqqW9n2vXvok=", "narHash": "sha256-bFufQGSAEYQgjtc4wMrobS5HWN0hDP+ZX+zthYcml9U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "78d9f40fd6941a1543ffc3ed358e19c69961d3c1", "rev": "8eb3b6a2366a7095939cd22f0dc0e9991313294b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1170,11 +1170,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1748693115, "lastModified": 1748929857,
"narHash": "sha256-StSrWhklmDuXT93yc3GrTlb0cKSS0agTAxMGjLKAsY8=", "narHash": "sha256-lcZQ8RhsmhsK8u7LIFsJhsLh/pzR9yZ8yqpTzyGdj+Q=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "910796cabe436259a29a72e8d3f5e180fc6dfacc", "rev": "c2a03962b8e24e669fb37b7df10e7c79531ff1a4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1664,11 +1664,11 @@
}, },
"locked": { "locked": {
"dir": "nix", "dir": "nix",
"lastModified": 1748110864, "lastModified": 1749042117,
"narHash": "sha256-Vew2z81xcYvrj8/Ne/i489VqHJxyZcujgjgdZ1wXQhE=", "narHash": "sha256-wFIbuFKDsgUvIzFO+e4y5zL7wSGh8upBRq2vOWauNfI=",
"owner": "wez", "owner": "wez",
"repo": "wezterm", "repo": "wezterm",
"rev": "b11cd7ae7e7ba96e9ee9121e10954b62fdc5fee1", "rev": "5106c8c1f799457719ca04f5bd73e7eddaf1de9c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1763,11 +1763,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1748920570, "lastModified": 1749006984,
"narHash": "sha256-m7EshkqPxa3IxN/qwxP1LlMlRdn37aiK0hghDieho8A=", "narHash": "sha256-AZdwPbpIPnEXom33VSfmTxeHUzcrEwW3p2xcXsyXDcU=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "ff5bf0bcf588e8c1d0f5fcd635b0c8e1cce8aee5", "rev": "7afa2abe15d7b1d843f9fc8919ac6efa7ad13b84",
"type": "github" "type": "github"
}, },
"original": { "original": {

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 = { accounts.email = {
maildirBasePath = "/home/emenel/.maildir"; maildirBasePath = "/home/emenel/.maildir";
@ -19,7 +22,12 @@
}; };
msmtp.enable = true; msmtp.enable = true;
flavor = "fastmail.com"; 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" = { "admin@studyoftime.org" = {
@ -35,7 +43,7 @@
}; };
}; };
msmtp.enable = true; msmtp.enable = true;
passwordCommand = "rbw get admin@studyoftime"; passwordCommand = "${pwdcmd} get admin@studyoftime";
imap.host = "imap.dreamhost.com"; imap.host = "imap.dreamhost.com";
smtp.host = "imap.dreamhost.com"; smtp.host = "imap.dreamhost.com";
userName = "admin@studyoftime.org"; 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 = { programs = {
mu.enable = true; mu.enable = true;
mbsync = { mbsync = {

View file

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

View file

@ -6,7 +6,7 @@ final: prev: {
owner = "tramhao"; owner = "tramhao";
repo = "termusic"; repo = "termusic";
rev = "HEAD"; rev = "HEAD";
hash = "sha256-l95vSxVfS0Fkhrfopzz/J5SXVPRAvT8qx899rBqor8A="; hash = "sha256-MYkI4TQ76/PPFv+bX+kL6Z+a0RHUE+wcC1R4ZwygZbo=";
}; };
cargoDeps = final.rustPlatform.fetchCargoVendor { cargoDeps = final.rustPlatform.fetchCargoVendor {