NixOS, nix-darwin, and Home Manager configurations managed as a single flake.
git clone https://github.com/arunoruto/flake ~/.config/flakesudo nixos-rebuild switch --accept-flake-config --flake ~/.config/flake#<device-name>sudo nix run nix-darwin/nix-darwin-<version>#darwin-rebuild -- switchReplace <version> with the nix-darwin release (e.g., 25.11).
home-manager switch --flake ~/.config/flake#<username> --accept-flake-confignix --experimental-features 'nix-command flakes' --accept-flake-config run nixpkgs#home-manager -- switch --flake ~/.config/flake#<username>Some shells (e.g. zsh) require quoting the flake argument:
--flake './#<username>'
Day-to-day commands are wrapped in a justfile (run inside nix develop .#nix,
which provides just):
just # list all recipes
just switch # build + activate this host
just update # update flake inputs
just check # nix flake check
just docs # serve the docs locallyFull documentation site: nix build .#docs, or mdbook serve docs for a live
preview. Start with Architecture for a map of the repo.
