To configure nix in a new machine, follow the steps below:
- Install
nix
in the machine.
sh <(curl -L https://nixos.org/nix/install) --daemon
- Add the following to nix.conf (located at ~/.config/nix/ or /etc/nix/nix.conf).
experimental-features = nix-command flakes
- Install home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install