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" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# needed so quassel can access SSL certs
|
|
|
|
# TODO: set up SSL
|
2022-10-28 13:56:51 +01:00
|
|
|
# users.groups.acme.members = [ "quassel" ];
|
2022-01-03 21:13:15 +00:00
|
|
|
|
|
|
|
# Not gonna serve anything there but shrug.
|
2022-10-28 13:56:51 +01:00
|
|
|
#services.nginx.virtualHosts."quassel.owo.monster" = {
|
|
|
|
# forceSSL = true;
|
|
|
|
# enableACME = true;
|
|
|
|
#};
|
2022-01-03 21:13:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
}
|