My current dotfiles is based on Nix and NixOS.
Getting started:
git clone https://github.com/chenlijun99/dotfiles --recursive
src/nixos contains my flake-based NixOS configuration.
Use just
recipes.
The provided NixOS configuration already integrates Home Manager. Every NixOS system selects which user to include (together with their home manager configuration). But Home Manager can also be use standalone. To activate an user home configuration manually.
In NixOS this is useful when debugging home-manager specific Nix expressions.
-
Why is a derivation being built?
Run
nix build
or whatever uses it (e.g.nixos-rebuild switch
) with verbose logs (--verbose
) and find the exact path of the derivation. Then find the top-level derivation (i.e. the system derivation or the home-manager derivation).$ nix why-depends <top-level derivation path> <derivation>
I now use NixOS, but I still try to keep things usable also on other distros. Here it is documented how my dotfiles used to work before the migration to NixOS.
git clone https://github.com/chenlijun99/dotfiles --recursive
cd dotfiles
# Install dotfiles into $HOME, by creating system links.
./install.sh
Open a new shell.