nixos/pretix: fix database.host option type (#343917)

Support database configuration using TCP and not only Unix sockets.
This commit is contained in:
Marcel 2024-09-23 10:52:08 +02:00 committed by GitHub
parent b4dc369186
commit 0556c426ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,7 +249,7 @@ in
};
host = mkOption {
type = with types; nullOr path;
type = with types; nullOr str;
default = if cfg.settings.database.backend == "postgresql" then "/run/postgresql" else null;
defaultText = literalExpression ''
if config.services.pretix.settings..database.backend == "postgresql" then "/run/postgresql"