aboutsummaryrefslogtreecommitdiff
path: root/share/home/offpunk.nix
blob: 7dbd03cd53f51e5e4470c51a2101f9bb01817a6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, ... }: {
  home.packages = [ pkgs.offpunk ];
  systemd.user = {
    timers.offpunk-sync = {
      Unit = {
        Description = "Offpunk sync command timer";
      };
      Timer = {
        Persistent = true;
        OnCalendar = "weekly";
      };
    };
    services.offpunk-sync = {
      Unit = {
        Description = "Offpunk sync command timer";
      };
      Service = {
        Type = "oneshot";
        KillMode = "process";
        ExecStart = "${pkgs.offpunk}/bin/offpunk --sync";
      };
    };
  };
}