24 lines
526 B
Nix
24 lines
526 B
Nix
{ lib, pkgs, config, ... }: {
|
|
services.zammad = {
|
|
enable = true;
|
|
openPorts = true;
|
|
host = "10.8.1.3";
|
|
database.createLocally = true;
|
|
redis.createLocally = true;
|
|
};
|
|
|
|
services.postgresql = {
|
|
authentication = pkgs.lib.mkOverride 10 ''
|
|
#type database DBuser auth-method
|
|
local zammad zammad trust
|
|
local postgres postgres trust
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
config.services.zammad.port
|
|
config.services.zammad.websocketPort
|
|
];
|
|
}
|