37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
# 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"
|
|
#
|
|
# 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
|
|
imports = [
|
|
../roles/common.nix
|
|
../roles/hetzner/amd.nix
|
|
../roles/hetzner/network.nix
|
|
../roles/hercules-ci
|
|
../roles/nginx.nix
|
|
../roles/raid.nix
|
|
../roles/remote-builder/aarch64-build04.nix
|
|
|
|
../services/hound
|
|
../services/hydra
|
|
../services/matterbridge
|
|
];
|
|
|
|
# /boot is a mirror raid
|
|
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.version = 2;
|
|
|
|
networking.nix-community.ipv6.address = "2a01:4f9:3a:3b16::1";
|
|
|
|
networking.hostName = "build03";
|
|
networking.hostId = "8daf74c0";
|
|
|
|
system.stateVersion = "21.05";
|
|
}
|