infra/hosts/build03/configuration.nix

39 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-16 09:53:27 +10:00
{ inputs, ... }:
2021-03-06 08:27:39 +01:00
{
# Boot recovery:
# Activate 64-bit Rescue system in https://robot.your-server.de/server
# ssh root@build03.nix-community.org "mount /dev/md[0-9]* /mnt && /mnt/kexec_bundle"
2021-03-06 08:27:39 +01:00
#
# In kexec image:
# stop autoreboot:
# $ systemctl stop autoreboot.timer
# $ zpool import -f zroot && mount -t zfs zroot/root/nixos /mnt && mount -t zfs zroot/root/home /mnt/home && mount /dev/md[0-9]* /mnt/boot
# $ nixos-enter
2021-03-06 08:27:39 +01:00
imports = [
2023-05-16 09:53:27 +10:00
inputs.srvos.nixosModules.mixins-nginx
inputs.srvos.nixosModules.hardware-hetzner-online-amd
2023-05-17 07:21:20 +10:00
inputs.self.nixosModules.common
inputs.self.nixosModules.hercules-ci
inputs.self.nixosModules.raid
inputs.self.nixosModules.watch-store
2023-05-17 07:21:20 +10:00
inputs.self.nixosModules.zfs
inputs.self.nixosModules.remote-builder-build04
2023-06-03 17:04:10 +10:00
inputs.self.nixosModules.remote-builder-darwin02
2023-07-17 09:37:43 +10:00
inputs.self.nixosModules.remote-builder-darwin03
2021-03-08 00:22:10 +00:00
2023-05-17 07:21:20 +10:00
inputs.self.nixosModules.hydra
inputs.self.nixosModules.nur-update
2021-03-06 08:27:39 +01:00
];
# /boot is a mirror raid
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
boot.loader.grub.enable = true;
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3a:3b16::1/64";
2021-03-06 08:27:39 +01:00
2022-08-13 11:13:06 +02:00
networking.hostName = "build03";
2021-03-06 08:27:39 +01:00
networking.hostId = "8daf74c0";
system.stateVersion = "21.05";
}