nixos/pretix: fix database.host option type (#343917)
Support database configuration using TCP and not only Unix sockets.
This commit is contained in:
parent
b4dc369186
commit
0556c426ff
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user