17 lines
411 B
Nix
17 lines
411 B
Nix
{...}: {
|
|
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];
|
|
}
|