If not enabled (legacy)
$ mkdir -p ~/.config/nix
$ echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# enter bootstrapping shell
$ nix shell nixpkgs#git nixpkgs#curl
# install dotfiles on new system
$ curl https://raw.githubusercontent.com/nicochatzi/dotfiles/main/.scripts/install-dotfiles.sh \
| bash
# setup new host machine in .nixfiles/hosts/$(hostname)
# generate the hardware config
$ nixos-genertae-config --root .
# OR get from system
$ cp /etc/nixos/hardware-configuration.nix ~/.nixfiles/hosts/$(hostname)/
# build system for current host
$ sudo nixos-rebuild switch --flake ~/.nixfiles#$(hostname)
- lightdm greeter might need to be disabled on first boot.
- rusutp is not fully setup, run:
rustup default stable
rustup components add rust-analyzer
- tmux/tpm setup
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm