unpacking 'github:ghostty-org/ghostty/0065aae6b6b97f47afbd5a9cb71852cebbe2ea69' into the Git cache... unpacking 'github:NixOS/nixos-hardware/ca30f8501ab452ca687a7fdcb2d43e1fb1732317' into the Git cache... unpacking 'github:NixOS/nixpkgs/3f0a8ac25fb674611b98089ca3a5dd6480175751' into the Git cache... unpacking 'github:NixOS/nixpkgs/ed8af6b426c0a90b0bf1ea96973153a491d3f181' into the Git cache... unpacking 'github:NixOS/nixpkgs/b30f97d8c32d804d2d832ee837d0f1ca0695faa5' into the Git cache... unpacking 'github:danth/stylix/f4626fbf4f0f804e2568e5428d9bbf76f3ddd907' into the Git cache... • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/6a25f33c843a45b8d67ba782b6782973a7265774?narHash=sha256-MiS6n5gcZdz42822GKlkuxEeyiT602DOciMEKF8YBUg%3D' (2025-01-07) → 'github:NixOS/nixpkgs/ed8af6b426c0a90b0bf1ea96973153a491d3f181?narHash=sha256-KcdVNgQ00kePPm4KfxspYzYucMCmInAUSCDSQvj7oZ8%3D' (2025-01-07)
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.