nix-config/hosts/new.md

758 B

Steps to add a new host

  1. Generate an SSH host key to be used for secrets ssh-keygen -t ed25519 -f /tmp/ssh_host_ed25519_key -C ""
  2. Go to borgmatic.com, add the generated SSH key and create a new repository
  3. Add a new host entry to nix-secrets/secrets.nix
  4. Generate a repository passphrase in nix-secrets
  5. Commit nix-secrets and run nix flake update in nix-config
  6. Add a README.md and default.nix suited to the host
  7. Define (or generate with nixos-generate-config) a hardware-configuration.nix
  8. Define the disk layout to be used by disko
  9. Commit nix-config
  10. Boot the NixOS installer
  11. Copy the generated SSH host key to /etc/ssh
  12. Copy the git SSH key to ~/.ssh/
  13. Run git clone git@git.vimium.com:jordan/nix-config.git