diff options
Diffstat (limited to 'profiles/email/mailsync.nix')
| -rw-r--r-- | profiles/email/mailsync.nix | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/profiles/email/mailsync.nix b/profiles/email/mailsync.nix index 3fcb0c5..8504e39 100644 --- a/profiles/email/mailsync.nix +++ b/profiles/email/mailsync.nix @@ -4,31 +4,33 @@ pkgs, ... }: { - programs.mbsync = { + hm = { + programs.mbsync = { enable = true; - }; - systemd.user.timers.mailsync = { + }; + systemd.user.timers.mailsync = { Unit = { - Description = "daemon that syncs mail"; + Description = "daemon that syncs mail"; }; Timer = { - OnBootSec = "5m"; - OnUnitActiveSec = "5m"; - Unit = "mailsync.service"; + OnBootSec = "5m"; + OnUnitActiveSec = "5m"; + Unit = "mailsync.service"; }; Install = { - WantedBy = [ "timers.target" ]; + WantedBy = [ "timers.target" ]; }; - }; - systemd.user.services.mailsync = { + }; + systemd.user.services.mailsync = { Unit = { - Description = "daemon that syncs mail"; + Description = "daemon that syncs mail"; }; Service = { - Type = "oneshot"; - RemainAfterExit = "no"; - ExecSearchPath = "${config.home.profileDirectory}/bin:/run/current-system/sw/bin"; - ExecStart = "${pkgs.coreutils}/bin/env mailsync"; + Type = "oneshot"; + RemainAfterExit = "no"; + ExecSearchPath = "${config.hm.home.profileDirectory}/bin:/run/current-system/sw/bin"; + ExecStart = "${pkgs.coreutils}/bin/env mailsync"; }; + }; }; } |
