summaryrefslogtreecommitdiff
path: root/profiles/email/mailsync.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-10-07 01:33:26 +0200
committerMike Vink <mike1994vink@gmail.com>2023-10-07 01:33:26 +0200
commita2cbf737e78051c2cb10eeaf4a5dccc19d6348ba (patch)
treef53ab92a0c94926e92117891eb87f19cafaa536c /profiles/email/mailsync.nix
parentcfaef26e8718916adcc68fbfb63b15f2389b2cd2 (diff)
first working
Diffstat (limited to 'profiles/email/mailsync.nix')
-rw-r--r--profiles/email/mailsync.nix32
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";
};
+ };
};
}