unpacking 'github:NixOS/nixpkgs/528ea737068a78e6591f40b9575b05a9b8d9918c' into the Git cache... • Updated input 'darwin': 'github:lnl7/nix-darwin/944c2b181792ae7ae6b20c0df3f44879c11706c9?narHash=sha256-SDuKLOWAh8VJRXlNWQn9QE99bjeEUAAbYXqrKGbsiyk%3D' (2025-01-14) → 'github:lnl7/nix-darwin/cae8d1c4a3bd37be5887203fe3b0c3a860c53a07?narHash=sha256-/hgw8fDKDpko0XqOw1e9tX8lS2Hqecg7W/JsONun6Qc%3D' (2025-01-21) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/cb3173dc5c746fa95bca1f035a7e4d2b588894ac?narHash=sha256-%2BX9KAryvDsIE7lQ0FdfiD1u33nOVgsgufedqspf77N4%3D' (2025-01-19) → 'github:NixOS/nixos-hardware/dfad538f751a5aa5d4436d9781ab27a6128ec9d4?narHash=sha256-ZEbOJ9iT72iwqXsiEMbEa8wWjyFvRA9Ugx8utmYbpz4%3D' (2025-01-24) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/107d5ef05c0b1119749e381451389eded30fb0d5?narHash=sha256-Qw2PwmkXDK8sPQ5YQ/y/icbQ%2BTYgbxfjhgnkNJyT1X8%3D' (2025-01-19) → 'github:NixOS/nixpkgs/035f8c0853c2977b24ffc4d0a42c74f00b182cd8?narHash=sha256-YnHJJ19wqmibLQdUeq9xzE6CjrMA568KN/lFPuSVs4I%3D' (2025-01-23) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/e427a1d3bb4bf14788310c71afbabf0304aa0fc4?narHash=sha256-TFWMMiIYfBjCLCm%2BskUrZ3ZRioIFItl47uRGD1fQSxE%3D' (2025-01-20) → 'github:NixOS/nixpkgs/528ea737068a78e6591f40b9575b05a9b8d9918c?narHash=sha256-7dp9O4uAxB1iY7vlIgtl19eH7bg7j5xnuTjJ7bMD0/k%3D' (2025-01-25) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/041c867bad68dfe34b78b2813028a2e2ea70a23c?narHash=sha256-DSenga8XjPaUV5KUFW/i3rNkN7jm9XmguW%2BqQ1ZJTR4%3D' (2025-01-17) → 'github:NixOS/nixpkgs/ecd26a469ac56357fd333946a99086e992452b6a?narHash=sha256-ET91TMkab3PmOZnqiJQYOtSGvSTvGeHoegAv4zcTefM%3D' (2025-01-24) • Updated input 'stylix': 'github:danth/stylix/ef93972237a82cc340e804a1d2d4140ad65fe81d?narHash=sha256-VujiBKJYM32b7HZEVO3Txla989lE7HMNGhVomLtguB0%3D' (2025-01-15) → 'github:danth/stylix/a48ccdad027eb72a6517249a038928c95218c4fe?narHash=sha256-HqpGosky65WyaK04NXyWtK/4RdBwAXt%2BG0OCwqntTvI%3D' (2025-01-23) • Updated input 'stylix/home-manager': 'github:nix-community/home-manager/c7ffc9727d115e433fd884a62dc164b587ff651d?narHash=sha256-zjO6m5BqxXIyjrnUziAzk4%2BT4VleqjstNudSqWcpsHI%3D' (2024-12-07) → 'github:nix-community/home-manager/bd65bc3cde04c16755955630b344bc9e35272c56?narHash=sha256-dinzAqCjenWDxuy%2BMqUQq0I4zUSfaCvN9rzuCmgMZJY%3D' (2025-01-08) • Updated input 'stylix/nixpkgs': 'github:NixOS/nixpkgs/e2605d0744c2417b09f8bf850dfca42fcf537d34?narHash=sha256-NcGumB4Lr6KSDq%2BnIqXtNA8QwAQKDSZT7N9OTGWbTrs%3D' (2024-12-07) → 'github:NixOS/nixpkgs/47addd76727f42d351590c905d9d1905ca895b82?narHash=sha256-6qY0pk2QmUtBT9Mywdvif0i/CLVgpCjMUn6g9vB%2Bf3M%3D' (2025-01-22)
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.