summaryrefslogtreecommitdiffstats
path: root/lass/2configs/muchsync.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-07 12:26:31 +0200
committerlassulus <git@lassul.us>2023-09-07 13:50:26 +0200
commitf55307fd73af235069744dd5155fda0bc73fe613 (patch)
treef048d7750a50e48493505a08784c96d07d291f89 /lass/2configs/muchsync.nix
parent85ae348bf3f53125c8281669a32bf007dc0063be (diff)
lass: migrate away
Diffstat (limited to 'lass/2configs/muchsync.nix')
-rw-r--r--lass/2configs/muchsync.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/lass/2configs/muchsync.nix b/lass/2configs/muchsync.nix
deleted file mode 100644
index b6d8c5dbc..000000000
--- a/lass/2configs/muchsync.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-with (import <stockholm/lib>);
-{ config, pkgs, ... }:
-
-{
- systemd.services.muchsync = let
- hosts = [
- "coaxmetal.r"
- "mors.r"
- "green.r"
- ];
- in {
- description = "sync mails";
- environment = {
- NOTMUCH_CONFIG = config.environment.variables.NOTMUCH_CONFIG;
- };
- after = [ "network.target" ];
-
- restartIfChanged = false;
-
- path = [
- pkgs.notmuch
- pkgs.openssh
- ];
-
- startAt = "*:*"; # run every minute
- serviceConfig = {
- User = "lass";
- Type = "oneshot";
- ExecStart = pkgs.writeDash "sync-mails" ''
- set -euf
-
- /run/current-system/sw/bin/nm-tag-init 2>/dev/null
- ${concatMapStringsSep "\n" (host: ''
- echo syncing ${host}:
- ${pkgs.muchsync}/bin/muchsync -s 'ssh -CTaxq -o ConnectTimeout=4' --nonew lass@${host} || :
- '') hosts}
- '';
- };
- };
-}
[cgit] Unable to lock slot /tmp/cgit/8c100000.lock: No such file or directory (2)