1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/hosts/seras/configuration.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2024-11-17 16:48:57 +01:00
{ pkgs, ... }: {
2024-04-03 10:38:55 +02:00
imports = [
../../common
2024-11-17 23:31:31 +01:00
../../users/nil
2024-04-29 15:22:48 +02:00
../../profiles/builder.nix
2024-04-03 10:38:55 +02:00
../../profiles/headless.nix
../../profiles/kartoffel.nix
../../profiles/lxc.nix
2024-05-09 20:21:49 +02:00
../../services/nginx.nix
2024-05-11 16:02:39 +02:00
../../services/hydra
2024-05-16 17:07:39 +02:00
../../services/update-nixfiles.nix
2024-04-03 10:38:55 +02:00
];
2024-05-10 14:35:05 +02:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2024-04-03 10:38:55 +02:00
2024-11-04 21:19:57 +01:00
networking.hostName = "seras";
2024-04-03 10:38:55 +02:00
systemd.network.networks."98-eth-default" = {
address = [
"2a0f:be01:0:100::169/128"
];
};
2024-09-11 20:22:53 +02:00
2024-10-18 15:15:00 +02:00
services.postgresql.settings = {
max_connections = 200;
shared_buffers = "24GB";
effective_cache_size = "72GB";
maintenance_work_mem = "2GB";
checkpoint_completion_target = 0.9;
wal_buffers = "16MB";
default_statistics_target = 100;
random_page_cost = 1.1;
effective_io_concurrency = 200;
work_mem = "31457kB";
huge_pages = "try";
min_wal_size = "1GB";
max_wal_size = "4GB";
max_worker_processes = 32;
max_parallel_workers_per_gather = 4;
max_parallel_workers = 32;
max_parallel_maintenance_workers = 4;
};
2024-09-11 20:22:53 +02:00
kyouma.ooklaserver = {
enable = true;
openFirewall = true;
domain = "speedtest.kyouma.net";
settings.openSSL.server.minimumTLSProtocol = "1.3";
};
2024-04-03 10:38:55 +02:00
}