From a8f9dd9a0296a70e2975a62778c96129417c3f5a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 15 Feb 2021 21:29:11 +0000 Subject: [PATCH] services: quassel: create storage DB --- services/quassel.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/quassel.nix b/services/quassel.nix index 44842cd..a525842 100644 --- a/services/quassel.nix +++ b/services/quassel.nix @@ -31,5 +31,17 @@ in # Open port for Quassel networking.firewall.allowedTCPPorts = [ cfg.port ]; + + # Create storage DB + services.postgresql = { + enable = true; + ensureDatabases = [ "quassel" ]; + ensureUsers = [ + { + name = "quassel"; + ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES"; + } + ]; + }; }; }