services: quassel: create storage DB

This commit is contained in:
Bruno BELANYI 2021-02-15 21:29:11 +00:00
parent 91be5ad978
commit a8f9dd9a02

View file

@ -31,5 +31,17 @@ in
# Open port for Quassel # Open port for Quassel
networking.firewall.allowedTCPPorts = [ cfg.port ]; networking.firewall.allowedTCPPorts = [ cfg.port ];
# Create storage DB
services.postgresql = {
enable = true;
ensureDatabases = [ "quassel" ];
ensureUsers = [
{
name = "quassel";
ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES";
}
];
};
}; };
} }