My NixOS config
- With a flakes-enabled Nix version, and
- As a non-root user:
nix flake update --commit-lock-file
nixos-rebuild switch --use-remote-sudo --flake <path-to-git-repo>
home-manager switch --flake <path-to-git-repo>
pushd <path-to-git-repo> && nix flake update --commit-lock-file && nixos-rebuild switch --use-remote-sudo --flake .; home-manager switch --flake . && popd
nixos-unstable
- Unstable channelnixos-unstable-small
- Unstable small channel, used for broken packages that have been fixed when unstable is blockednixos-unstable-lagging
- Unstable channel, fixed to a particular commit, used for recently broken packageshome-manager