From 88051c9ccfa9b863b41f0ae86dbb1caaeb739743 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sat, 12 Jun 2021 21:26:56 +0700 Subject: Overhaul configurations --- .../systemd/user/default.target.wants/mbsync-legacy.timer | 1 - .../systemd/user/default.target.wants/mbsync-primary.timer | 1 - nixos/.config/systemd/user/default.target.wants/mbsync.timer | 1 + nixos/.config/systemd/user/mbsync-legacy.service | 12 ------------ nixos/.config/systemd/user/mbsync-legacy.timer | 11 ----------- nixos/.config/systemd/user/mbsync-primary.service | 12 ------------ nixos/.config/systemd/user/mbsync-primary.timer | 11 ----------- nixos/.config/systemd/user/mbsync.service | 12 ++++++++++++ nixos/.config/systemd/user/mbsync.timer | 11 +++++++++++ 9 files changed, 24 insertions(+), 48 deletions(-) delete mode 120000 nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer delete mode 120000 nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer create mode 120000 nixos/.config/systemd/user/default.target.wants/mbsync.timer delete mode 100644 nixos/.config/systemd/user/mbsync-legacy.service delete mode 100644 nixos/.config/systemd/user/mbsync-legacy.timer delete mode 100644 nixos/.config/systemd/user/mbsync-primary.service delete mode 100644 nixos/.config/systemd/user/mbsync-primary.timer create mode 100644 nixos/.config/systemd/user/mbsync.service create mode 100644 nixos/.config/systemd/user/mbsync.timer (limited to 'nixos/.config/systemd') diff --git a/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer b/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer deleted file mode 120000 index d6a74a0..0000000 --- a/nixos/.config/systemd/user/default.target.wants/mbsync-legacy.timer +++ /dev/null @@ -1 +0,0 @@ -/home/sea/.config/systemd/user/mbsync-legacy.timer \ No newline at end of file diff --git a/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer b/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer deleted file mode 120000 index fdf6883..0000000 --- a/nixos/.config/systemd/user/default.target.wants/mbsync-primary.timer +++ /dev/null @@ -1 +0,0 @@ -/home/sea/.config/systemd/user/mbsync-primary.timer \ No newline at end of file diff --git a/nixos/.config/systemd/user/default.target.wants/mbsync.timer b/nixos/.config/systemd/user/default.target.wants/mbsync.timer new file mode 120000 index 0000000..6842d01 --- /dev/null +++ b/nixos/.config/systemd/user/default.target.wants/mbsync.timer @@ -0,0 +1 @@ +/home/sea/.config/systemd/user/mbsync.timer \ No newline at end of file diff --git a/nixos/.config/systemd/user/mbsync-legacy.service b/nixos/.config/systemd/user/mbsync-legacy.service deleted file mode 100644 index e0954de..0000000 --- a/nixos/.config/systemd/user/mbsync-legacy.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Synchronize IMAP and MailDir for legacy account -Documentation=man:mbsync(1) -ConditionPathExists=%h/.mbsyncrc -After=network.target - -[Service] -ExecStart=/usr/bin/mbsync legacy -Type=oneshot - -[Install] -WantedBy=default.target diff --git a/nixos/.config/systemd/user/mbsync-legacy.timer b/nixos/.config/systemd/user/mbsync-legacy.timer deleted file mode 100644 index 3ea535a..0000000 --- a/nixos/.config/systemd/user/mbsync-legacy.timer +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Timer for legacy accound mbsync -ConditionPathExists=%h/.mbsyncrc -After=network.target - -[Timer] -OnBootSec=1m -OnUnitInactiveSec=1m - -[Install] -WantedBy=default.target diff --git a/nixos/.config/systemd/user/mbsync-primary.service b/nixos/.config/systemd/user/mbsync-primary.service deleted file mode 100644 index 8ce0e6f..0000000 --- a/nixos/.config/systemd/user/mbsync-primary.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Synchronize IMAP and MailDir for primary account -Documentation=man:mbsync(1) -ConditionPathExists=%h/.mbsyncrc -After=network.target - -[Service] -ExecStart=/usr/bin/mbsync primary -Type=oneshot - -[Install] -WantedBy=default.target diff --git a/nixos/.config/systemd/user/mbsync-primary.timer b/nixos/.config/systemd/user/mbsync-primary.timer deleted file mode 100644 index a0f4151..0000000 --- a/nixos/.config/systemd/user/mbsync-primary.timer +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Timer for primary accound mbsync -ConditionPathExists=%h/.mbsyncrc -After=network.target - -[Timer] -OnBootSec=1m -OnUnitInactiveSec=1m - -[Install] -WantedBy=default.target diff --git a/nixos/.config/systemd/user/mbsync.service b/nixos/.config/systemd/user/mbsync.service new file mode 100644 index 0000000..55b05b0 --- /dev/null +++ b/nixos/.config/systemd/user/mbsync.service @@ -0,0 +1,12 @@ +[Unit] +Description=Synchronize IMAP and MailDir +Documentation=man:mbsync(1) +ConditionPathExists=%h/.mbsyncrc +After=network.target + +[Service] +ExecStart=/run/current-system/sw/bin/mbsync primary legacy +Type=oneshot + +[Install] +WantedBy=default.target diff --git a/nixos/.config/systemd/user/mbsync.timer b/nixos/.config/systemd/user/mbsync.timer new file mode 100644 index 0000000..d2c980f --- /dev/null +++ b/nixos/.config/systemd/user/mbsync.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Timer for mbsync +ConditionPathExists=%h/.mbsyncrc +After=network.target + +[Timer] +OnBootSec=1m +OnUnitInactiveSec=1m + +[Install] +WantedBy=default.target -- cgit 1.4.1