infra/roles/kexec.nix

24 lines
658 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-03-04 09:37:45 +01:00
# nix-shell -p nixos-generators --run 'nixos-generate -o ./result -f kexec-bundle -c ./profiles/kexec.nix'
{
imports = [
./users.nix
./sshd.nix
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
#nix-shell -p nixos-generators --run 'nixos-generate -o ./result -f kexec-bundle -c ./profiles/kexec.nix'
#exit
#/home/foo/infra/result
#after reboot:
#$ systemctl stop autoreboot.timer