2022-12-31 07:24:17 +01:00
|
|
|
{ ... }:
|
2021-03-06 08:27:39 +01:00
|
|
|
{
|
|
|
|
# Boot recovery:
|
|
|
|
# Activate 64-bit Rescue system in https://robot.your-server.de/server
|
2021-03-24 18:33:51 +01:00
|
|
|
# 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:
|
2021-03-24 15:26:04 +01:00
|
|
|
# stop autoreboot:
|
|
|
|
# $ systemctl stop autoreboot.timer
|
2021-03-24 18:33:51 +01:00
|
|
|
# $ 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
|
2021-03-24 15:26:04 +01:00
|
|
|
# $ nixos-enter
|
2021-03-06 08:27:39 +01:00
|
|
|
imports = [
|
2021-03-07 16:28:44 +00:00
|
|
|
../roles/common.nix
|
2022-12-03 10:11:40 +10:00
|
|
|
../roles/hetzner/amd.nix
|
|
|
|
../roles/hetzner/network.nix
|
2021-12-24 07:42:09 +01:00
|
|
|
../roles/hercules-ci
|
2021-03-08 00:22:10 +00:00
|
|
|
../roles/nginx.nix
|
2021-12-26 07:44:39 +01:00
|
|
|
../roles/raid.nix
|
2022-10-18 11:02:47 +10:00
|
|
|
../roles/remote-builder/aarch64-build04.nix
|
2021-03-08 00:22:10 +00:00
|
|
|
|
|
|
|
../services/hound
|
2022-11-02 08:00:31 +10:00
|
|
|
../services/hydra
|
2022-12-03 11:34:23 +10:00
|
|
|
../services/matterbridge
|
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;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
|
2021-03-24 18:09:23 +01:00
|
|
|
networking.nix-community.ipv6.address = "2a01:4f9:3a:3b16::1";
|
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";
|
|
|
|
}
|