Remote run skill, mu4e change

This commit is contained in:
2026-09-06 11:49:54 +03:00
parent 943498ce52
commit 9c64e1513e
4 changed files with 91 additions and 23 deletions
+11 -5
View File
@@ -2,11 +2,11 @@
config.flake.modules.homeManager.mail = {
lib,
config,
pkgs,
...
}: let
default_account_params = {
realName = "Aner Zakobar";
notmuch.enable = true;
mbsync = {
enable = true;
create = "maildir";
@@ -30,14 +30,20 @@
};
config = lib.mkIf config.azos.mail.enable {
programs = {
notmuch = {
enable = true;
hooks = {preNew = "mbsync -a";};
};
mu.enable = true;
mbsync.enable = true;
msmtp.enable = true;
lieer.enable = true;
};
home.activation.muInit = lib.hm.dag.entryAfter ["writeBoundary"] ''
if [ ! -d "$HOME/.cache/mu" ]; then
$DRY_RUN_CMD ${pkgs.mu}/bin/mu init \
--maildir="$HOME/Mail" \
--my-address=aner@zakobar.com \
--my-address=anerisgreat@gmail.com \
--my-address=anerz@post.bgu.ac.il
fi
'';
services.lieer.enable = true;
accounts.email.accounts = {
gmail =