Nix configuration using Home Manager and Nix Flakes.
- Nix with flakes enabled
-
Clone this repo:
git clone git@github.com:rameezk/dotfiles.git ~/.config/dotfiles cd ~/.config/dotfiles
-
Build and activate the configuration:
./bin/switch
The machine configuration is automatically determined by hostname.
| Command | Description |
|---|---|
./bin/switch |
Build and activate configuration |
./bin/upgrade |
Update flake inputs and rebuild |
./bin/rollback |
Rollback to previous generation |
./bin/collect-garbage |
Clean up old generations |
Format Nix files:
nix fmtThis repo uses pre-commit to format *.nix files with nixfmt.
To install hooks:
pre-commit installSee the docs directory for additional documentation.
Interested in my Emacs config? See modules/editor/emacs/config/emacs.org.
Looking for the old non-Nix dotfiles? Find them on the old-school-thinking branch.