663 B
663 B
Installing on a new machine
- Install NixOS from an ISO via USB
- Reboot machine
- Edit /etc/nixos/configuration and add
gitto packages - Clone this repo
- Copy new
host/configuration for the new machine - Copy /etc/nixos/hardware-configuration to
host/<host>/hardware.nix - Edit
flake.nixto point to the newhost git add .- Run
sudo nixos-rebuild switch --flake .#nixos
Building NixOS VM
nix build .#nixosConfigurations.nixosvm.config.system.build.vm
https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf
Building NixOS ISO
nix build .#nixosConfigurations.live.config.system.build.isoImage