diff options
| author | makefu <github@syntax-fehler.de> | 2023-09-09 19:42:08 +0200 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2023-09-09 19:42:08 +0200 |
| commit | 29d72c898d674d2c18fc0f4a76b5e623de0c3dfe (patch) | |
| tree | fc4b0695c986a1cda6f1fbbbcbe716e203c54fa3 /lass/2configs/muchsync.nix | |
| parent | e157ffa72856e4378aa23b096b2efff233f3cb3d (diff) | |
| parent | 083229d0211096daec08673f743ccc45b1d8a0ac (diff) | |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/muchsync.nix')
| -rw-r--r-- | lass/2configs/muchsync.nix | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lass/2configs/muchsync.nix b/lass/2configs/muchsync.nix deleted file mode 100644 index 392970dbd..000000000 --- a/lass/2configs/muchsync.nix +++ /dev/null @@ -1,41 +0,0 @@ -with (import <stockholm/lib>); -{ config, pkgs, ... }: - -{ - systemd.services.muchsync = let - hosts = [ - "coaxmetal.r" - "mors.r" - "green.r" - "blue.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} - ''; - }; - }; -} |
