- NixOS
- EFI partition >= 512MB
Replace <hostname> with new machine's hostname throughout.
nix-shell -p git
git clone https://github.com/AlexAntonik/config.git ~/config
mkdir -p ~/config/hosts/<hostname>
cp ~/config/hosts/base/*.nix ~/config/hosts/<hostname>/
mv ~/config/hosts/<hostname>/base.nix ~/config/hosts/<hostname>/<hostname>.nixEdit ~/config/hosts/<hostname>/<hostname>.nix , ~/config/hosts/<hostname>/hardware.nix.
Generate hardware config, then rebuild:
sudo nixos-generate-config --show-hardware-config | sudo tee ~/config/hosts/<hostname>/hardware-gen.nix
sudo nixos-rebuild switch --flake ~/config/#<hostname>Inspired by EmergentMind, Mic92, Zaney, vic, Goxore