unpacking 'github:NixOS/nixpkgs/123d780a895647c7378c98d4a5774bc541df7245' into the Git cache... • Updated input 'home-manager': 'github:nix-community/home-manager/c7ffc9727d115e433fd884a62dc164b587ff651d?narHash=sha256-zjO6m5BqxXIyjrnUziAzk4%2BT4VleqjstNudSqWcpsHI%3D' (2024-12-07) → 'github:nix-community/home-manager/1318c3f3b068cdcea922fa7c1a0a1f0c96c22f5f?narHash=sha256-Zb5ZCa7Xj%2B0gy5XVXINTSr71fCfAv%2BIKtmIXNrykT54%3D' (2024-12-11) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/e2605d0744c2417b09f8bf850dfca42fcf537d34?narHash=sha256-NcGumB4Lr6KSDq%2BnIqXtNA8QwAQKDSZT7N9OTGWbTrs%3D' (2024-12-07) → 'github:NixOS/nixpkgs/a0f3e10d94359665dba45b71b4227b0aeb851f8e?narHash=sha256-KWwINTQelKOoQgrXftxoqxmKFZb9pLVfnRvK270nkVk%3D' (2024-12-10) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/9409e7eb50e79dda54ed26b9964e56ef2d6138c9?narHash=sha256-gbUySWIwT45Yi52X7b3hUM9TcWjmlA9Tp/w0z%2BcfA4w%3D' (2024-12-11) → 'github:NixOS/nixpkgs/123d780a895647c7378c98d4a5774bc541df7245?narHash=sha256-eZseoHjNtSvfK8fbxEimr0N57PnT3yJp36H6w5rP5J0%3D' (2024-12-13) • Updated input 'nixvim': 'github:nix-community/nixvim/b752606681ded3f69e99ed568c7075b3578dce48?narHash=sha256-VHzWuZYK/m5OFXzAczrjnI7vH6knj0sfLnziRVDqgFE%3D' (2024-12-10) → 'github:nix-community/nixvim/d99bc6ebadce99dcb8b294c31fac96329b3bdf2e?narHash=sha256-Sgs%2BIBdeggoSPeiKHN40wW6/BgBDnersgdhLQK4fUR8%3D' (2024-12-12) • Updated input 'stylix': 'github:danth/stylix/bc25f3d69d3bb54548b772d7c2771e65cc37dc10?narHash=sha256-PMZdRUZQlouWgHFCFW8ANDFL6fUjZ67KAEaqRXwRwvc%3D' (2024-12-10) → 'github:danth/stylix/ccee633284cde8a9f825004e00dd84a31b10e6c6?narHash=sha256-72z7fZNeFtG%2BUWmbMn5by4K47HHBxk3JtV91D/qZEhg%3D' (2024-12-12)
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.