diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-27 09:07:38 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-27 09:07:38 +0100 |
| commit | a05ca675290f01e097fbe21e6420ec341ac1ea95 (patch) | |
| tree | 037555aba4ffecc818d6cfdb64b6f9b976876414 /share/home/offpunk.nix | |
| parent | b9893bfea01b1a9d98b22d4fc5d2ff6afc5dc5d7 (diff) | |
hyprdesktop: set up offpunk
Add offpunk tools to the environment and set up a systemd timer to sync
content automatically every week.
Diffstat (limited to 'share/home/offpunk.nix')
| -rw-r--r-- | share/home/offpunk.nix | 24 |
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"; + }; + }; + }; +} |
