unpacking 'github:NixOS/nixpkgs/9b84330b71860b2134554d473a23e67950cd73dd' into the Git cache... • Updated input 'darwin': 'github:lnl7/nix-darwin/71a3a075e3229a7518d76636bb762aef2bcb73ac?narHash=sha256-Ys9pSP9ch0SthhpbjnkCSJ9ZLfaNKnt/dcy7swjmS1A%3D' (2024-12-29) → 'github:lnl7/nix-darwin/6a1fdb2a1204c0de038847b601cff5012e162b5e?narHash=sha256-62xAPSs5VRZoPH7eRanUn5S5vZEd%2B8vM4bD5I%2Bzxokc%3D' (2024-12-31) • Updated input 'ghostty': 'github:ghostty-org/ghostty/716848cb58473a4c67fed7adaf2b04179661381f?narHash=sha256-Ec7uyE/KjaGMjRpBMDz/QOOihDtN1evV6XnOkHSuS0w%3D' (2024-12-30) → 'github:ghostty-org/ghostty/94599102e9fb8247af08cbbbcb7ee25e3d31e1bd?narHash=sha256-f4LI34cXP8nOTi4Va6GPUFaJYf0qGbabk%2BOeUddsfuk%3D' (2025-01-01) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/3ffbbdbac0566a0977da3d2657b89cbcfe9a173b?narHash=sha256-As8I%2BebItDKtboWgDXYZSIjGlKeqiLBvjxsQHUmAf1Q%3D' (2024-12-30) → 'github:NixOS/nixpkgs/edf04b75c13c2ac0e54df5ec5c543e300f76f1c9?narHash=sha256-tfYRbFhMOnYaM4ippqqid3BaLOXoFNdImrfBfCp4zn0%3D' (2024-12-31) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/3be90b9f3ac249c7fad58d9a6c89eff708223394?narHash=sha256-xlcbIJiBqVfS0e29Fq%2BAXSJkQsAzEXonIZbGRqv%2B27I%3D' (2024-12-30) → 'github:NixOS/nixpkgs/9b84330b71860b2134554d473a23e67950cd73dd?narHash=sha256-4lP78IFN4MBR7jY1KhlU0aEBmlroLUg%2BeHCBrUp3aho%3D' (2025-01-02) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/6d97d419e5a9b36e6293887a89a078cf85f5a61b?narHash=sha256-opBsbR/nrGxiiF6XzlVluiHYb6yN/hEwv%2BlBWTy9xoM%3D' (2024-12-30) → 'github:NixOS/nixpkgs/69b9a8c860bdbb977adfa9c5e817ccb717884182?narHash=sha256-5zJyv66q68QZJZsXtmjDBazGnF0id593VSy%2B8eSckoo%3D' (2024-12-31)
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.