infra/hosts/build02/configuration.nix

32 lines
965 B
Nix
Raw Normal View History

2024-07-12 00:45:42 +02:00
{ config, inputs, ... }:
{
imports = [
2023-05-16 09:53:27 +10:00
inputs.srvos.nixosModules.mixins-nginx
inputs.srvos.nixosModules.hardware-hetzner-online-amd
2023-04-06 11:40:39 +10:00
./nixpkgs-update.nix
2023-04-30 14:22:16 +10:00
./nixpkgs-update-backup.nix
2023-05-17 07:21:20 +10:00
inputs.self.nixosModules.common
2023-09-07 12:47:33 +10:00
inputs.self.nixosModules.builder
2024-04-08 09:56:44 +10:00
inputs.self.nixosModules.disko-zfs
2024-07-12 00:26:06 +02:00
inputs.self.nixosModules.emergency-access
];
2024-07-12 00:45:42 +02:00
# the default zpool import services somehow times out while this import works fine?
boot.initrd.systemd.services.zfs-import-zroot.serviceConfig.ExecStartPre = "${config.boot.zfs.package}/bin/zpool import -N -f zroot";
2024-07-09 11:08:35 +10:00
nixCommunity.gc.gbFree = 500;
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
2022-08-13 11:13:06 +02:00
networking.hostName = "build02";
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";
}