blob: 0694e6db2855aa2e7a15ca8e80d9aa2cb82275ec (
plain) (
blame)
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
|
{ config, lib, pkgs, ... }:
let
depot = config.lib.depot;
in
{
systemd.user = {
services.sync-depot-public-inbox = {
Service.ExecStart = pkgs.writeShellScript "sync-depot-public-inbox" ''
${depot.tools.fetch-depot-inbox}/bin/fetch-depot-inbox \
/home/aspen/mail/tvl/
${pkgs.notmuch}/bin/notmuch new
'';
};
timers.sync-depot-public-inbox = {
Unit.Description = "Sync the depot public inbox";
Timer = {
OnCalendar = "*:*";
Unit = "sync-depot-public-inbox.service";
};
Install.WantedBy = [ "timers.target" ];
};
};
}
|