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; + }; + }; +}