infra/roles/kexec.nix

29 lines
799 B
Nix
Raw Normal View History

2021-03-04 09:37:45 +01:00
{ config, lib, pkgs, ... }:
2021-03-06 08:28:04 +01:00
# build with:
2021-05-11 16:57:21 +02:00
# nix-shell -p nixos-generators --run 'nixos-generate -o ./result -f kexec-bundle -c ./roles/kexec.nix'
2021-03-04 09:37:45 +01:00
{
imports = [
./users.nix
./sshd.nix
2021-03-04 09:37:45 +01:00
];
2021-08-17 20:31:59 +02:00
# ttyAMA0 is consoles on aarch64
boot.kernelParams = [ "console=ttyS0,115200n8" "console=ttyAMA0,115200n8" "console=tty0" ];
2021-03-04 09:37:45 +01:00
}
2021-03-06 08:28:04 +01:00
# Hetzner bootstrap from rescue system
#
#useradd -m -s /bin/bash foo
#install -d -m700 -o foo /nix
#su - foo
#curl -L https://nixos.org/nix/install | bash
#. /home/foo/.nix-profile/etc/profile.d/nix.sh
#git clone https://github.com/nix-community/infra && cd infra
2021-03-24 18:09:03 +01:00
#nix-shell
#nix-shell -p nixos-generators --run 'nixos-generate -o ./result -f kexec-bundle -c ./roles/kexec.nix'
#exit
2021-03-06 08:28:04 +01:00
#exit
#/home/foo/infra/result
#after reboot:
#$ systemctl stop autoreboot.timer