build03/postgresql: move from modules/hydra

remove ensureDatabases as it isn't compatible with the hydra module
This commit is contained in:
zowoq 2023-12-03 08:21:05 +10:00
parent db839e2ce2
commit b01030c2f0
3 changed files with 11 additions and 10 deletions

View file

@ -15,6 +15,7 @@
inputs.self.nixosModules.hydra
inputs.self.nixosModules.nur-update
./disko.nix
./postgresql.nix
];
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3b:2946::1/64";

View file

@ -0,0 +1,10 @@
{
services.postgresql = {
enable = true;
settings = {
max_connections = "300";
effective_cache_size = "4GB";
shared_buffers = "4GB";
};
};
}

View file

@ -52,16 +52,6 @@
'';
};
services.postgresql = {
enable = true;
ensureDatabases = [ "hydra" ];
settings = {
max_connections = "300";
effective_cache_size = "4GB";
shared_buffers = "4GB";
};
};
services.nginx.virtualHosts = {
"hydra.nix-community.org" = {
forceSSL = true;