unpacking 'github:ghostty-org/ghostty/8111f5b9958c21e0157f63cc4ce2dfc2329c67ac' into the Git cache... unpacking 'github:NixOS/nixpkgs/e752b73238588a9959a3d89697e408cf90dca606' into the Git cache... • Updated input 'ghostty': 'github:ghostty-org/ghostty/35b9ceee2116331b83c0c86269394e2545070b0f?narHash=sha256-iAKNXAEfX%2Bf%2BETIgNPxCoNtmFpQsdEG3YYGhEPvohHI%3D' (2024-12-26) → 'github:ghostty-org/ghostty/8111f5b9958c21e0157f63cc4ce2dfc2329c67ac?narHash=sha256-JGoqNnhSr632eLo1NWKJWoZyepCZlXT0o1/2A6e1Ph4%3D' (2024-12-27) • Added input 'ghostty/flake-compat': 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/6c90912761c43e22b6fb000025ab96dd31c971ff?narHash=sha256-8T660guvdaOD%2B2/Cj970bWlQwAyZLKrrbkhYOFcY1YE%3D' (2024-12-23) → 'github:NixOS/nixpkgs/4005c3ff7505313cbc21081776ad0ce5dfd7a3ce?narHash=sha256-VIAjBr1qGcEbmhLwQJD6TABppPMggzOvqFsqkDoMsAY%3D' (2024-12-25) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/1557114798a3951db0794379f26b68a5fdf68b12?narHash=sha256-wId235QT/RguzitooXlfaK3tYwzOf/jL0UMOlBEGyeg%3D' (2024-12-26) → 'github:NixOS/nixpkgs/e752b73238588a9959a3d89697e408cf90dca606?narHash=sha256-I9k5DmEOmunX2hdSrCIXNKX/%2BzUTqZsFSIClFXx6vco%3D' (2024-12-27) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/de1864217bfa9b5845f465e771e0ecb48b30e02d?narHash=sha256-Ucfnxq1rF/GjNP3kTL%2BuTfgdoE9a3fxDftSfeLIS8mA%3D' (2024-12-23) → 'github:NixOS/nixpkgs/7cc0bff31a3a705d3ac4fdceb030a17239412210?narHash=sha256-7QEFnKkzD13SPxs%2BUFR5bUFN2fRw%2BGlL0am72ZjNre4%3D' (2024-12-27)
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.