summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2017-12-20 21:45:07 +0100
committerSander van der Burg <svanderburg@gmail.com>2017-12-20 21:45:07 +0100
commit9cee2e5c95e748e6ead8d76a007872de74ecf030 (patch)
tree7e3650490e8c21b7773f91515ac19696640ce4d4 /nixos
parent6b4687741e5fea0d57719f99864ff212813566f2 (diff)
downloadnixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar.gz
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar.bz2
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar.lz
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar.xz
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.tar.zst
nixlib-9cee2e5c95e748e6ead8d76a007872de74ecf030.zip
dysnomia module: use postgres as default user and always publish container properties
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/dysnomia.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/misc/dysnomia.nix b/nixos/modules/services/misc/dysnomia.nix
index df44d0a54866..c5c41ad296da 100644
--- a/nixos/modules/services/misc/dysnomia.nix
+++ b/nixos/modules/services/misc/dysnomia.nix
@@ -192,9 +192,11 @@ in
         mysqlPassword = builtins.readFile (config.services.mysql.rootPassword);
       };
     }
-    // lib.optionalAttrs (config.services.postgresql.enable && cfg.enableAuthentication) { postgresql-database = {
-      postgresqlUsername = "root";
-    }; }
+    // lib.optionalAttrs (config.services.postgresql.enable) { postgresql-database = {
+      } // lib.optionalAttrs (cfg.enableAuthentication) {
+        postgresqlUsername = "postgres";
+      };
+    }
     // lib.optionalAttrs (config.services.tomcat.enable) { tomcat-webapplication = {
       tomcatPort = 8080;
     }; }