diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-23 08:29:48 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-23 08:29:48 -0400 |
commit | e4781a2c772c1bd6802e65847629f2248ba37336 (patch) | |
tree | d4d068c4dc5ce499b138daaf023e8310d8d8bffc /modules/desktop/apps/mutt-wizard.nix | |
parent | 93280382da83e885d919d3b13f4383c2ac6102d3 (diff) | |
download | nix-config-e4781a2c772c1bd6802e65847629f2248ba37336.tar.gz nix-config-e4781a2c772c1bd6802e65847629f2248ba37336.tar.bz2 nix-config-e4781a2c772c1bd6802e65847629f2248ba37336.zip |
2025-07-23
Diffstat (limited to 'modules/desktop/apps/mutt-wizard.nix')
-rw-r--r-- | modules/desktop/apps/mutt-wizard.nix | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/modules/desktop/apps/mutt-wizard.nix b/modules/desktop/apps/mutt-wizard.nix index 3b8a5db..da7b779 100644 --- a/modules/desktop/apps/mutt-wizard.nix +++ b/modules/desktop/apps/mutt-wizard.nix @@ -21,6 +21,26 @@ in pkgs.isync pkgs.lynx pkgs.mutt-wizard - ]; + ]; + + systemd.timers."auto-mailsync" = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "10m"; + OnUnitActiveSec = "10m"; + Unit = "auto-mailsync.service"; + }; + }; + + systemd.services."auto-mailsync" = { + script = '' + set -eu + /run/current-system/sw/bin/bash -l -c '${pkgs.mutt-wizard}/bin/mailsync -Y' + ''; + serviceConfig = { + Type = "oneshot"; + User = "jon"; + }; + }; }; } |