From e4781a2c772c1bd6802e65847629f2248ba37336 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 23 Jul 2025 08:29:48 -0400 Subject: 2025-07-23 --- modules/desktop/apps/mutt-wizard.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'modules/desktop/apps/mutt-wizard.nix') 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"; + }; + }; }; } -- cgit v1.2.1