Skip to content

Commit

Permalink
dysnomia module: use postgres as default user and always publish cont…
Browse files Browse the repository at this point in the history
…ainer properties
  • Loading branch information
svanderburg committed Dec 20, 2017
1 parent 6b46877 commit 9cee2e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/services/misc/dysnomia.nix
Expand Up @@ -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;
}; }
Expand Down

0 comments on commit 9cee2e5

Please sign in to comment.