Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 957 Bytes

File metadata and controls

36 lines (27 loc) · 957 Bytes

Bootstrap

Manual operations to set up an host.

Reinstall an host

  • Make an ISO and boot with it

    rm -rf result
    nix build .#nixosConfigurations.iso.config.system.build.isoImage
  • Clone this repository on the host

  • Format the disk with the format-script

  • Set up persistent directories/file

    ./scripts/setup-opt-in-state.sh
  • Copy the host's private key

    • For new machine
      • Generate the host's key ssh-keygen -t ed25519 -f ssh_host_ed25519_key
      • Convert host key to age key for secret cat ssh_host_ed25519_key.pub | ssh-to-age
      • Generate a new key for the user-host couple via age age-keygen
  • Set up an access to gitlab via ssh (to fetch secrets repo)

  • Install host

    sudo nixos-install --flake .#<host>

    ask root password but can be ignored

  • After install, ask for root password but doesn't requires it after reboot

  • Reboot