• Updated input 'home-manager': 'github:nix-community/home-manager/bd65bc3cde04c16755955630b344bc9e35272c56?narHash=sha256-dinzAqCjenWDxuy%2BMqUQq0I4zUSfaCvN9rzuCmgMZJY%3D' (2025-01-08) → 'github:nix-community/home-manager/254d47082e23dbf72fdeca1da6fe1da420f478d8?narHash=sha256-eCc0/Q4bPpe4/AS%2BuzIrHLJcR6BxPQ69q2kD0/Qe6rU%3D' (2025-02-14) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/0ff09db9d034a04acd4e8908820ba0b410d7a33a?narHash=sha256-9xim3nJJUFbVbJCz48UP4fGRStVW5nv4VdbimbKxJ3I%3D' (2025-02-12) → 'github:NixOS/nixpkgs/0b73e36b1962620a8ac551a37229dd8662dac5c8?narHash=sha256-wjWLzdM7PIq4ZAe7k3vyjtgVJn6b0UeodtRFlM/6W5U%3D' (2025-02-13) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/134c9771a626f6540a46c8f208420e445c6904b1?narHash=sha256-jKCNoIi5u2JNxh8dioTWOT9VuJXoByt/4hzJf7lepOs%3D' (2025-02-14) → 'github:NixOS/nixpkgs/30885c9744b9e9583c7e44d421d9e035cf6b7021?narHash=sha256-N/T7U2RvNff8KCUMTcovX0Lm8LLV15Bd3JpWRoBspsM%3D' (2025-02-16) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/1128e89fd5e11bb25aedbfc287733c6502202ea9?narHash=sha256-3ebRdThRic9bHMuNi2IAA/ek9b32bsy8F5R4SvGTIog%3D' (2025-02-13) → 'github:NixOS/nixpkgs/ba0939c506a03c60a765cd7f7c43794816540eec?narHash=sha256-/5Lwtmp/8j%2Bro32gXzitucSdyjJ6QehfJCL58WNA7N0%3D' (2025-02-13) • Updated input 'nixvim': 'github:nix-community/nixvim/9f0cb35c26a7dbc0acce0658f73b08b2198487c6?narHash=sha256-/J2H70Gsi13nh8vGEV6aBr%2Be5avFaGOSr2TF4VjnVAk%3D' (2025-02-08) → 'github:nix-community/nixvim/6b2c62b91a10a773e705f55e8b34a19c8b1f3728?narHash=sha256-9hyreNdQtQaFzWAx38CHiKHFQ8vAc/J2/kXeT7Nwy6s%3D' (2025-02-15) • Updated input 'nixvim/home-manager': 'github:nix-community/home-manager/bd65bc3cde04c16755955630b344bc9e35272c56?narHash=sha256-dinzAqCjenWDxuy%2BMqUQq0I4zUSfaCvN9rzuCmgMZJY%3D' (2025-01-08) → 'github:nix-community/home-manager/254d47082e23dbf72fdeca1da6fe1da420f478d8?narHash=sha256-eCc0/Q4bPpe4/AS%2BuzIrHLJcR6BxPQ69q2kD0/Qe6rU%3D' (2025-02-14) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/cae8d1c4a3bd37be5887203fe3b0c3a860c53a07?narHash=sha256-/hgw8fDKDpko0XqOw1e9tX8lS2Hqecg7W/JsONun6Qc%3D' (2025-01-21) → 'github:lnl7/nix-darwin/353846417f985e74fdc060555f17939e4472ea2c?narHash=sha256-L4ou3xfOr17EAe836djRoQ7auVkYOREMtiQa82wVGqU%3D' (2025-02-14)
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.