Create your ./hosts/YOUR_HOST/*.nix, git-add and apply.
Link /etc/nixos/* to the right files. Backup your hardware config. Keep your state version.
nix flake update --flake ~/dotfiles/hosts/$hostname
sudo nixos-rebuild switch --flake ~/dotfiles/hosts/$hostname --show-traceFor fresh installations, import pc.nix and kde.nix.
Git-add *.nix before using flake.
Delete dotfiles before switch.
rm -rf ~/.config/{git,fish,nvim}Clear cache files before openning nvim.
rm -rf ~/.local/share/nvimOn ratelimit errors, put access-tokens = github.com=<token> in /root/.config/nix/nix.conf.
On experimental feature errors, export NIX_CONFIG="experimental-features = nix-command flakes" before nixos-install.