20 lines
370 B
Nix
20 lines
370 B
Nix
{...}: {
|
|
services.quassel = {
|
|
enable = true;
|
|
interfaces = ["0.0.0.0"];
|
|
};
|
|
|
|
services.postgresql = {
|
|
enable = true;
|
|
ensureDatabases = ["quassel"];
|
|
ensureUsers = [
|
|
{
|
|
name = "quassel";
|
|
ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES";
|
|
}
|
|
];
|
|
|
|
authentication = "host quassel quassel localhost trust";
|
|
};
|
|
}
|