fix phil postgres

This commit is contained in:
Rouven Seifert 2023-12-14 17:32:13 +01:00
parent 02de2df6d3
commit 7022528b62
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -19,7 +19,7 @@ in
"--load-credential=course-secret-key:${config.sops.secrets."course-management-phil/secret-key".path}" "--load-credential=course-secret-key:${config.sops.secrets."course-management-phil/secret-key".path}"
"--load-credential=course-adminpass:${config.sops.secrets."course-management-phil/adminpass".path}" "--load-credential=course-adminpass:${config.sops.secrets."course-management-phil/adminpass".path}"
]; ];
config = { pkgs, config, ... }: { config = { config, ... }: {
system.stateVersion = "23.05"; system.stateVersion = "23.05";
networking.domain = "ifsr.de"; networking.domain = "ifsr.de";
imports = [ imports = [
@ -71,7 +71,7 @@ in
}]; }];
ensureDatabases = [ "course-management" ]; ensureDatabases = [ "course-management" ];
}; };
systemd.services.postgresql.serviceConfig.ExecStart = lib.mkForce "${pkgs.postgresql}/bin/postgres -c listen_addresses=''"; systemd.services.postgresql.serviceConfig.ExecStart = lib.mkForce "${config.services.postgresql.package}/bin/postgres -c listen_addresses=''";
services.nginx = { services.nginx = {
enable = true; enable = true;
recommendedProxySettings = true; recommendedProxySettings = true;