build03/postgresql: move from modules/hydra
remove ensureDatabases as it isn't compatible with the hydra module
This commit is contained in:
parent
db839e2ce2
commit
b01030c2f0
3 changed files with 11 additions and 10 deletions
|
@ -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";
|
||||
|
|
10
hosts/build03/postgresql.nix
Normal file
10
hosts/build03/postgresql.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
settings = {
|
||||
max_connections = "300";
|
||||
effective_cache_size = "4GB";
|
||||
shared_buffers = "4GB";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue