aboutsummaryrefslogtreecommitdiff
path: root/modules/apps/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'modules/apps/postgresql')
-rw-r--r--modules/apps/postgresql/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/apps/postgresql/default.nix b/modules/apps/postgresql/default.nix
index bfbf4bd..5ed6615 100644
--- a/modules/apps/postgresql/default.nix
+++ b/modules/apps/postgresql/default.nix
@@ -5,7 +5,7 @@ let
match toString ;
inherit (lib)
- concatMapStrings concatStringsSep filter filterAttrs foldAttrs foldl
+ concatMapStrings concatStringsSep filterAttrs foldAttrs filter foldl
hasPrefix isBool isInt isList isString length mapAttrs' mapAttrsToList
mkDefault mkIf mkOption nameValuePair types ;
@@ -22,9 +22,7 @@ let
keyrings =
let
- isKey = s: s != null && hasPrefix "/run/keys/" s;
- keys = i: filter isKey [ i.server.ssl_key_file ];
- ik = mapAttrsToList (_: i: { "${i.user}" = keys i; } ) instances;
+ ik = mapAttrsToList (_: i: { "${i.user}" = [ i.server.ssl_key_file ]; } ) instances;
in foldAttrs (l: r: l ++ r) [] ik;
mkService = name: opts: