aboutsummaryrefslogtreecommitdiff
path: root/share/home/offpunk.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/home/offpunk.nix')
-rw-r--r--share/home/offpunk.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/home/offpunk.nix b/share/home/offpunk.nix
new file mode 100644
index 0000000..7dbd03c
--- /dev/null
+++ b/share/home/offpunk.nix
@@ -0,0 +1,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";
+ };
+ };
+ };
+}