unpacking 'github:NixOS/nixpkgs/314edfd2d5dcca142d4e1bec52e96623120ee9ab' into the Git cache... • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/4dc2fc4e62dbf62b84132fe526356fbac7b03541?narHash=sha256-FillH0qdWDt/nlO6ED7h4cmN%2BG9uXwGjwmCnHs0QVYM%3D' (2024-12-05) → 'github:NixOS/nixpkgs/e2605d0744c2417b09f8bf850dfca42fcf537d34?narHash=sha256-NcGumB4Lr6KSDq%2BnIqXtNA8QwAQKDSZT7N9OTGWbTrs%3D' (2024-12-07) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/6876876a8bf3505cd38d90a642a209b00f6d06ae?narHash=sha256-SkupTxj%2BfR0qns8u0rRJp7AzE2g/pMtJ3Mhv1EqueHA%3D' (2024-12-08) → 'github:NixOS/nixpkgs/314edfd2d5dcca142d4e1bec52e96623120ee9ab?narHash=sha256-Y0u0rbRFhw16HcN8YOc7myJmBZyzgo5ZwBRqbtZK2Fw%3D' (2024-12-09) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/929116e316068c7318c54eb4d827f7d9756d5e9c?narHash=sha256-aLJxoTDDSqB%2B/3orsulE6/qdlX6MzDLIITLZqdgMpqo%3D' (2024-12-05) → 'github:NixOS/nixpkgs/93dc9803a1ee435e590b02cde9589038d5cc3a4e?narHash=sha256-w0FXPfpGhOihoJDiwMsyN1EzpsXi2F8VQ%2BNVZQSMtys%3D' (2024-12-08) • Updated input 'nixvim': 'github:nix-community/nixvim/e2f81c8e8e8baa28b100e0e43b721f16de6299d8?narHash=sha256-RajfsaKZIc3bk75wiaw%2BZYVDSMljdLWW69VCT90f05w%3D' (2024-12-08) → 'github:nix-community/nixvim/cf7e026c8c86c5548d270e20c04f456939591219?narHash=sha256-SCEjUwyt6R2%2B36BS7xQG%2BrHUrhE8HDpmRwQzKHJkimQ%3D' (2024-12-09)
nix-config
This repo stores nix to manage my machines running NixOS and macOS.
The configuration is very specific to my own machines and setup, but it may be a useful reference for anyone else learning or experimenting with nix, whether it be on a personal workstation or a server environment.
Setup
on macOS: install the latest unstable nix from https://github.com/numtide/nix-unstable-installer (for nix flakes), and nix-darwin: https://github.com/LnL7/nix-darwin
Recipes are stored in a justfile. just is required.
To run a rebuild:
just rebuild
Update
To update nixpkgs defined in flake.nix, run:
just update
If there are updates, they should be reflected in flake.lock.
Rollback
To rollback to the previous generation:
just rollback
Garbage collection
To cleanup previous files, run nix garbage collection:
just clean
Pre-commit hooks
Pre-commit hooks are automatically activated when direnv is installed.