From 7d8085d60f30ac28ec25a1de611cbbd3ae3e4b3b Mon Sep 17 00:00:00 2001 From: notohh Date: Tue, 19 Sep 2023 16:03:03 -0400 Subject: [PATCH] tsuki: init gotify desktop daemon --- hosts/tsuki/services/default.nix | 1 + hosts/tsuki/services/gotify-desktop.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 hosts/tsuki/services/gotify-desktop.nix diff --git a/hosts/tsuki/services/default.nix b/hosts/tsuki/services/default.nix index 3175140..ce9e406 100644 --- a/hosts/tsuki/services/default.nix +++ b/hosts/tsuki/services/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ ./restic.nix + ./gotify-desktop.nix ]; } diff --git a/hosts/tsuki/services/gotify-desktop.nix b/hosts/tsuki/services/gotify-desktop.nix new file mode 100644 index 0000000..ddb9bac --- /dev/null +++ b/hosts/tsuki/services/gotify-desktop.nix @@ -0,0 +1,15 @@ +{pkgs, ...}: { + systemd.services.gotify-desktop = { + enable = true; + wantedBy = [ + "multi-user.target" + ]; + description = "Small Gotify daemon to send messages as desktop notifications"; + serviceConfig = { + User = "notoh"; + ExecStart = "${pkgs.gotify-desktop}/bin/gotify-desktop"; + Restart = "always"; + RestartSec = 30; + }; + }; +}