blob: 5e1037a0fa1af8fdb2633b4ef29b31a426992de1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
inputs,
config,
pkgs,
...
}: {
hm = {
programs.mbsync = {
enable = true;
};
systemd.user.timers.mailsync = {
Unit = {
Description = "daemon that syncs mail";
};
Timer = {
OnBootSec = "5m";
OnUnitActiveSec = "5m";
Unit = "mailsync.service";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
systemd.user.services.mailsync = {
Unit = {
Description = "daemon that syncs mail";
};
Service = {
Type = "oneshot";
RemainAfterExit = "no";
ExecSearchPath = "${config.ivi.home}/.local/bin:${config.hm.home.profileDirectory}/bin:/run/current-system/sw/bin";
ExecStart = "mailsync";
};
};
};
}
|