Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dysnomia module: use postgres as default user and always publish cont…
…ainer properties

(cherry picked from commit 9cee2e5)
  • Loading branch information
svanderburg committed Dec 20, 2017
1 parent 1259c46 commit 150e2b5
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 150e2b5

Please sign in to comment.