To configure nix in a new machine, follow the steps below:
- Install
nixin 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-managernix-channel --updatenix-shell '<home-manager>' -A installNEW
nix run .#home-manager -- switch --flake .#your-username@your-host