unpacking 'github:NixOS/nixpkgs/bdb91860de2f719b57eef819b5617762f7120c70' into the Git cache... unpacking 'github:NixOS/nixpkgs/017583d659ea1dee77b5f37b57ec311d5d522c25' into the Git cache... • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/02f2af8c8a8c3b2c05028936a1e84daefa1171d4?narHash=sha256-7PCBQ4aGVF8OrzMkzqtYSKyoQuU2jtpPi4lmABpe5X4%3D' (2025-04-01) → 'github:NixOS/nixpkgs/bdb91860de2f719b57eef819b5617762f7120c70?narHash=sha256-s1KLDALEeqy%2BttrvqV3jx9mBZEvmthQErTVOAzbjHZs%3D' (2025-04-03) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/dfa986cbcf5e4658b909fe3a79a4f22bb2c567cc?narHash=sha256-2wHSj66NKAK4cj43iEL6Z/Pwz4p8AFxIx5PuEtBJe4I%3D' (2025-04-02) → 'github:NixOS/nixpkgs/017583d659ea1dee77b5f37b57ec311d5d522c25?narHash=sha256-w9rClYqQ61XsK34OflvsxxuxCHS82TYrbuyz/w4FQgE%3D' (2025-04-04) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/b9d43b3fe5152d1dc5783a2ba865b2a03388b741?narHash=sha256-Bl/ynRPIb4CdtbEw3gfJYpKiHmRmrKltXc8zipqpO0o%3D' (2025-04-01) → 'github:NixOS/nixpkgs/2bfc080955153be0be56724be6fa5477b4eefabb?narHash=sha256-y7Hg5lwWhEOgflEHRfzSH96BOt26LaYfrYWzZ%2BVoVdg%3D' (2025-04-03)
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.