From 0916d7dcd1f9662db575faef928d0b281b45b9c6 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sun, 5 Nov 2023 16:37:50 -0800 Subject: [PATCH] use new postgresql module for authelia --- modules/authelia.nix | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/modules/authelia.nix b/modules/authelia.nix index 614cb10..9cb92e0 100644 --- a/modules/authelia.nix +++ b/modules/authelia.nix @@ -274,21 +274,12 @@ in user = autheliaCfg.user; }; - services.postgresql = { - enable = true; - ensureDatabases = [ autheliaCfg.user ]; - ensureUsers = [ - { - name = autheliaCfg.user; - ensurePermissions = { - "DATABASE ${autheliaCfg.user}" = "ALL PRIVILEGES"; - }; - ensureClauses = { - "login" = true; - }; - } - ]; - }; + shb.postgresql.passwords = [ + { + username = autheliaCfg.user; + database = autheliaCfg.user; + } + ]; services.prometheus.scrapeConfigs = [ {