infra/build01/configuration.nix
zimbatm dc4a411085
build01: remove healthcheck ping
This is already covered by Mic92's monitoring system.
2021-05-09 16:52:29 +02:00

40 lines
1.1 KiB
Nix

{ config, pkgs, lib, ... }:
# Boot recovery:
# Activate 64-bit Rescue system in https://robot.your-server.de/server
# ssh root@build01.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 /mnt && mount -t zfs zroot/root/home /mnt/home && mount -t zfs zroot/root/nix /mnt/nix && mount /dev/md[0-9]* /mnt/boot
# nixos-enter
{
imports = [
./hardware-configuration.nix
../roles/common.nix
../roles/hetzner-network.nix
];
# /boot is a mirror raid
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.extraConfig = ''
# for mdraid 1.1
insmod mdraid1x
'';
networking.hostName = "nix-community-build01";
networking.hostId = "d2905767";
# Emulate armv7 until we have proper builders
boot.binfmt.emulatedSystems = [ "armv7l-linux" ];
networking.nix-community.ipv6.address = "2a01:4f8:13b:2ceb::1";
boot.kernelPackages = pkgs.linuxPackages_latest;
system.stateVersion = "20.03";
}