Warning
This will clone the repository into $HOME/repos/.dotfiles
. If you wish to
clone it elsewhere you must change it manually in the bash script / nix flakes.
Replace <host>
with desired host
nixos-rebuild switch --use-remote-sudo --flake github:MLFlexer/.dotfiles#<host>
Or do it locally by cloning the repo and running:
nixos-rebuild switch --use-remote-sudo --flake $HOME/repos/.dotfiles#<host>
nix-shell -p git --command "curl -sSL https://raw.githubusercontent.com/MLFlexer/.dotfiles/main/nix_git_install.sh | bash"
curl -sSL https://raw.githubusercontent.com/MLFlexer/.dotfiles/main/install.sh | bash
nixos-rebuild switch --use-remote-sudo --flake $HOME/repos/.dotfiles#<host>
home-manager switch --flake $HOME/repos/.dotfiles/#<user>
nix flake update
nix-collect-garbage --delete-older-than 7d
Checkout Building your own system tarball for WSL.
Checkout Building an sd-card image for Raspberry Pi 5.