Skip to content

Commit 150e2b5

Browse files
committedDec 20, 2017
dysnomia module: use postgres as default user and always publish container properties
(cherry picked from commit 9cee2e5)
1 parent 1259c46 commit 150e2b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎nixos/modules/services/misc/dysnomia.nix

+5-3
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,11 @@ in
192192
mysqlPassword = builtins.readFile (config.services.mysql.rootPassword);
193193
};
194194
}
195-
// lib.optionalAttrs (config.services.postgresql.enable && cfg.enableAuthentication) { postgresql-database = {
196-
postgresqlUsername = "root";
197-
}; }
195+
// lib.optionalAttrs (config.services.postgresql.enable) { postgresql-database = {
196+
} // lib.optionalAttrs (cfg.enableAuthentication) {
197+
postgresqlUsername = "postgres";
198+
};
199+
}
198200
// lib.optionalAttrs (config.services.tomcat.enable) { tomcat-webapplication = {
199201
tomcatPort = 8080;
200202
}; }

0 commit comments

Comments
 (0)
Please sign in to comment.