infra/build03/configuration.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2021-03-06 08:27:39 +01:00
{ 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"
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 = [
./hardware-configuration.nix
2021-04-19 10:05:03 +02:00
../roles/buildkite.nix
../roles/common.nix
../roles/hercules-ci
../roles/hetzner-network.nix
2021-03-08 00:22:10 +00:00
../roles/nginx.nix
../services/hound
2021-04-20 21:51:03 +02:00
../services/hydra
2021-05-05 08:29:47 +02:00
../services/marvin-mk2.nix
2021-11-11 23:08:28 +01:00
../services/matterbridge.nix
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;
boot.loader.grub.extraConfig = ''
# for mdraid 1.1
insmod mdraid1x
'';
networking.nix-community.ipv6.address = "2a01:4f9:3a:3b16::1";
2021-03-06 08:27:39 +01:00
networking.hostName = "nix-community-build03";
networking.hostId = "8daf74c0";
system.stateVersion = "21.05";
}