2022-02-10 10:37:09 +00:00
|
|
|
_: {
|
2022-01-03 21:13:15 +00:00
|
|
|
services.quassel = {
|
|
|
|
enable = true;
|
|
|
|
interfaces = [ "0.0.0.0" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
services.postgresql.ensureDatabases = [ "quassel" ];
|
|
|
|
services.postgresql.ensureUsers = [{
|
|
|
|
name = "quassel";
|
|
|
|
ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES";
|
|
|
|
}];
|
|
|
|
services.postgresql.authentication = "host quassel quassel localhost trust";
|
|
|
|
networking.firewall.allowedTCPPorts = [ 4242 ];
|
|
|
|
}
|