diff --git a/flake.lock b/flake.lock index b86d423..edf8764 100644 --- a/flake.lock +++ b/flake.lock @@ -1559,11 +1559,11 @@ ] }, "locked": { - "lastModified": 1780978555, - "narHash": "sha256-ypDqbmORvm35z0F/pJnFy+t9txtUS19YMazu3uAsAPA=", + "lastModified": 1780982947, + "narHash": "sha256-XeZqQEa8wztuEQMASi46o4ZPsJZQkKZGbg5OaFON/Ig=", "owner": "nix-community", "repo": "NUR", - "rev": "4ee6e2017506a665f28316cb04419b8f201e216d", + "rev": "0e8d2ff58607457a3634aeeca850b3cfbde54462", "type": "github" }, "original": { diff --git a/modules/services/gotify.nix b/modules/services/gotify.nix index e87a5fd..be6ea38 100644 --- a/modules/services/gotify.nix +++ b/modules/services/gotify.nix @@ -1,20 +1,29 @@ { - flake.modules.nixos.gotify = {lib, ...}: let + flake.modules.nixos.gotify = { + # keep-sorted start + lib, + pkgs, + # keep-sorted end + ... + }: let inherit (lib) mkForce; in { services.gotify = { enable = true; + package = pkgs.nur.repos.adam0.gotify-server; stateDirectoryName = "gotify"; environment = { GOTIFY_SERVER_PORT = 44407; - GOTIFY_DATABASE_CONNECTION = "host=/run/postgresql user=gotify dbname=gotify sslmode=disable"; + GOTIFY_DATABASE_DIALECT = "postgres"; + GOTIFY_DATABASE_CONNECTION = "host=/run/postgresql user=gotify dbname=gotify sslmode=disable"; }; }; users = { groups.gotify = {}; + users.gotify = { group = "gotify"; isSystemUser = true;