services: quassel: create storage DB
This commit is contained in:
parent
91be5ad978
commit
a8f9dd9a02
|
@ -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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue