Pick your desired operating system and follow the below instructions.
NixOS
For a more automated way to install NixOS, see nixos-anywhere.
- Install NixOS w/ Flakes enabled
-
Convert your
flake.nix
to usingnixos-flake
using the NixOS only template as reference.
non-NixOS Linux
- Install Nix
- Use the HOME only template
macOS
Alternatively, use the “Both platforms” template if you are sharing your configuration with the other platform as well.