diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-27 21:33:25 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-04-01 07:51:54 +0200 |
commit | b0e559f749f9ce3fc8a472de70ecbb5090425ffe (patch) | |
tree | b31c6b6df12f476ddfac4868928768e7d7871a5a | |
parent | 1a4314b20cc9388f96f5961301fe1dd0a3474d1f (diff) |
feat(tente): add Gotify
-rw-r--r-- | nixos/hosts/tente/default.nix | 2 | ||||
-rw-r--r-- | nixos/hosts/tente/gotify.nix | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index b4a47f0..8904ba7 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -19,6 +19,7 @@ in <top/shared/tailscale.nix> ./web-personal.nix ./git.nix + ./gotify.nix ./headscale.nix ./matrix.nix ./monitoring.nix @@ -79,6 +80,7 @@ in monitoring.grafanaUiPort = 3000; monitoring.alloyUiPort = 3001; monitoring.lokiPort = 3030; + gotify.port = 4000; monitoring.prometheusNodeExporterPort = 9002; monitoring.prometheusSqlExporterPort = 9003; headscale.port = 8080; diff --git a/nixos/hosts/tente/gotify.nix b/nixos/hosts/tente/gotify.nix new file mode 100644 index 0000000..ba0fd02 --- /dev/null +++ b/nixos/hosts/tente/gotify.nix @@ -0,0 +1,21 @@ +{ config, lib, ... }: + +let + cfg = config.gotify; +in +{ + options.gotify = { + port = lib.mkOption { + type = lib.types.int; + }; + }; + + config = { + services.gotify = { + enable = true; + environment = { + GOTIFY_SERVER_PORT = cfg.port; + }; + }; + }; +} |