infra/hosts/build02/default.nix

30 lines
693 B
Nix
Raw Normal View History

2024-07-27 10:57:14 +10:00
{ inputs, ... }:
{
imports = [
2023-04-30 14:22:16 +10:00
./nixpkgs-update-backup.nix
2024-11-21 12:51:20 +10:00
./nixpkgs-update.nix
2024-04-08 09:56:44 +10:00
inputs.self.nixosModules.disko-zfs
2024-11-21 12:51:20 +10:00
inputs.self.nixosModules.nginx
inputs.srvos.nixosModules.hardware-hetzner-online-amd
];
2024-11-21 17:31:14 +10:00
nix.settings.max-jobs = 24;
nixpkgs.hostPlatform.gcc.arch = "znver2";
2024-07-25 18:41:00 +10:00
# set in srvos, remove when reinstalling
networking.hostId = "deadbeef";
2024-05-14 22:10:30 +10:00
boot.kernelParams = [ "zfs.zfs_arc_max=${toString (24 * 1024 * 1024 * 1024)}" ]; # 24GB, try to limit OOM kills / reboots
2024-04-14 14:39:04 +10:00
2024-07-24 19:05:26 +10:00
networking.nameservers = [
"1.1.1.1"
"1.0.0.1"
];
2023-12-11 11:28:40 +10:00
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3b:41d9::1";
2023-12-11 11:28:40 +10:00
system.stateVersion = "23.11";
}