From b0e559f749f9ce3fc8a472de70ecbb5090425ffe Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 27 Mar 2025 21:33:25 +0100 Subject: feat(tente): add Gotify --- nixos/hosts/tente/gotify.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nixos/hosts/tente/gotify.nix (limited to 'nixos/hosts/tente/gotify.nix') 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; + }; + }; + }; +} -- cgit v1.2.3