Install dotfiles on other Operating Systems
mainFor non-NixOS systems (e.g., Arch Linux, Ubuntu, Fedora), use home-manager to manage the environment and mise to link dotfiles.
- Clone the repository and edit
flake.nixas described in the NixOS guide. - Run
./install.shto install Nix, flake, and home-manager. - Apply the home-manager configuration:
- For the default user/hostname:
home-manager switch --flake .#<hostname> - If overriding the username:
NIX_USERNAME=your_username home-manager switch --impure --flake .#<hostname>
- For the default user/hostname:
- Link dotfiles using
mise.- First run only: Since
~/.config/miseis not yet linked, you must pointmiseto the repo's config:mise trust .config/mise/config.toml MISE_GLOBAL_CONFIG_FILE="$PWD/.config/mise/config.toml" mise dotfiles apply - Subsequent runs:
mise dotfiles apply
- First run only: Since
- Complete post-install setup (zsh, mise upgrade, and Neovim plugin sync) as detailed in the NixOS guide.
home-manager switch --flake .#<hostname>
# If overriding username:
NIX_USERNAME=your_username home-manager switch --impure --flake .#<hostname>
# Link dotfiles (First run):
MISE_GLOBAL_CONFIG_FILE="$PWD/.config/mise/config.toml" mise dotfiles apply