Create your ./hosts/YOUR_HOST/*.nix
, git-add and apply.
# Defined in /home/c31io/.config/fish/functions/bs.fish @ line 1
function bs
sudo nixos-rebuild switch --flake ~/dotfiles/hosts/$hostname --show-trace
end
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/nvim
On ratelimit errors, put access-tokens = github.com=<token>
in /root/.config/nix/nix.conf
.