unpacking 'github:NixOS/nixpkgs/a8be94c0af330325c8c96730cdae5e168a0632a1' into the Git cache... • Updated input 'ghostty': 'github:ghostty-org/ghostty/7a27af8bfce9007e31be10aeafe7a968a66aa0b5?narHash=sha256-VTKk01nq122E0YuDcTS7tWFBlfOjnZQteHJkPU5F370%3D' (2025-01-05) → 'github:ghostty-org/ghostty/6181487bad55f8bbff9ce4f849a40fac72120f82?narHash=sha256-NPfIRTbmzP5%2BIbbDIYED3zxVd%2Bb1DSsl8nCGRBt3iQo%3D' (2025-01-06) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d29ab98cd4a70a387b8ceea3e930b3340d41ac5a?narHash=sha256-vk0xwGZSlvZ/596yxOtsk4gxsIx2VemzdjiU8zhjgWw%3D' (2025-01-03) → 'github:NixOS/nixpkgs/cbd8ec4de4469333c82ff40d057350c30e9f7d36?narHash=sha256-DjkQPnkAfd7eB522PwnkGhOMuT9QVCZspDpJJYyOj60%3D' (2025-01-05) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/d86ae899d2909c0899e4d3b29d90d5309771e77c?narHash=sha256-6SrMWqWSmPJaXtg2RD793HcBvTe0wfVPx60WzIl7SEA%3D' (2025-01-05) → 'github:NixOS/nixpkgs/a8be94c0af330325c8c96730cdae5e168a0632a1?narHash=sha256-ITgWNzchyP8qH2rSumeNudc7dP/A4yD%2BuqF2qYgTtT0%3D' (2025-01-06) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/a27871180d30ebee8aa6b11bf7fef8a52f024733?narHash=sha256-Q4HuFAvoKAIiTRZTUxJ0ZXeTC7lLfC9/dggGHNXNlCw%3D' (2025-01-03) → 'github:NixOS/nixpkgs/bf689c40d035239a489de5997a4da5352434632e?narHash=sha256-jdd5UWtLVrNEW8K6u5sy5upNAFmF3S4Y%2BOIeToqJ1X8%3D' (2025-01-05)
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.