unpacking 'github:NixOS/nixpkgs/00c6a2ff11d172bd5631b5cbf18671f2ed5aa754' into the Git cache... unpacking 'github:NixOS/nixpkgs/d9b69c3ec2a2e2e971c534065bdd53374bd68b97' into the Git cache... unpacking 'github:danth/stylix/aaa2eb8956770c096f9c46fb163bb26602e20e56' into the Git cache... • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/18e9f9753e9ae261bcc7d3abe15745686991fd30?narHash=sha256-Y78mDBWoO8CLLTjQfPfII%2BKXFb6lAmF9GrLbyVBsIMM%3D' (2025-02-20) → 'github:NixOS/nixos-hardware/d58f642ddb23320965b27beb0beba7236e9117b5?narHash=sha256-pGk/aA0EBvI6o4DeuZsr05Ig/r4uMlSaf5EWUZEWM10%3D' (2025-02-24) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/11415c7ae8539d6292f2928317ee7a8410b28bb9?narHash=sha256-SSYxFhqCOb3aiPb6MmN68yEzBIltfom8IgRz7phHscM%3D' (2025-02-21) → 'github:NixOS/nixpkgs/04ef94c4c1582fd485bbfdb8c4a8ba250e359195?narHash=sha256-cbrw7EgQhcdFnu6iS3vane53bEagZQy/xyIkDWpCgVE%3D' (2025-02-23) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/fad7ed412b65a63221a4860d9c75381b399e0096?narHash=sha256-e%2BnY0bB0LEHC6oyjrMjWrCZc1uxNY2OaCBEVblihOGU%3D' (2025-02-23) → 'github:NixOS/nixpkgs/00c6a2ff11d172bd5631b5cbf18671f2ed5aa754?narHash=sha256-rdxkMdKq3Xku3yg7aIvVHb/DtOEcdnH2Be924kR/Oig%3D' (2025-02-26) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/dad564433178067be1fbdfcce23b546254b6d641?narHash=sha256-vn285HxnnlHLWnv59Og7muqECNMS33mWLM14soFIv2g%3D' (2025-02-20) → 'github:NixOS/nixpkgs/d9b69c3ec2a2e2e971c534065bdd53374bd68b97?narHash=sha256-ATMHHrg3sG1KgpQA5x8I%2BzcYpp5Sf17FaFj/fN%2B8OoQ%3D' (2025-02-24) • Updated input 'nixvim': 'github:nix-community/nixvim/de4035ea1a84aa0ebe12d24fc660130a754e0a5c?narHash=sha256-3UKJJoY2hkqHuEbrlbQQRU4TIF0hV7Fw2b0PUZpnuBI%3D' (2025-02-22) → 'github:nix-community/nixvim/92a97c5e4170b1509dc598fc2d63160eb48095c7?narHash=sha256-RNT0py9/iF8JIBYLaMAL0H52wt2TIyc0uLmyz7tmfkc%3D' (2025-02-24) • Updated input 'stylix': 'github:danth/stylix/248860c767c67881a7491bcd522a8571560af089?narHash=sha256-LlUFkinhMlvK5uIx6tTg1UYcreYF4iLVNRL8mqiSyjQ%3D' (2025-02-18) → 'github:danth/stylix/aaa2eb8956770c096f9c46fb163bb26602e20e56?narHash=sha256-QRlcA8rtfNdyKpBE%2BptjiB9717Tzum4/sKBSbsyqL6k%3D' (2025-02-25) • Updated input 'stylix/base16-helix': 'github:tinted-theming/base16-helix/7f795bf75d38e0eea9fed287264067ca187b88a9?narHash=sha256-Z2o8VBPW3I%2BKKTSfe25kskz0EUj7MpUh8u355Z1nVsU%3D' (2024-09-09) → 'github:tinted-theming/base16-helix/03860521c40b0b9c04818f2218d9cc9efc21e7a5?narHash=sha256-esD42YdgLlEh7koBrSqcT7p2fsMctPAcGl/%2B2sYJa2o%3D' (2025-01-14) • Updated input 'stylix/base16-vim': 'github:tinted-theming/base16-vim/61165b1632409bd55e530f3dbdd4477f011cadc6?narHash=sha256-XIDexXM66sSh5j/x70e054BnUsviibUShW7XhbDGhYo%3D' (2024-11-18) → 'github:tinted-theming/base16-vim/577fe8125d74ff456cf942c733a85d769afe58b7?narHash=sha256-e0bpPySdJf0F68Ndanwm%2BKWHgQiZ0s7liLhvJSWDNsA%3D' (2024-11-28) • Updated input 'stylix/flake-compat': 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33?narHash=sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U%3D' (2023-10-04) → 'github:edolstra/flake-compat/ff81ac966bb2cae68946d5ed5fc4994f96d0ffec?narHash=sha256-NeCCThCEP3eCl2l/%2B27kNNK7QrwZB1IJCrXfrbv5oqU%3D' (2024-12-04) • Updated input 'stylix/git-hooks': 'github:cachix/git-hooks.nix/cd1af27aa85026ac759d5d3fccf650abe7e1bbf0?narHash=sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf%2BInnSMT4jlMU%3D' (2024-11-11) → 'github:cachix/git-hooks.nix/9364dc02281ce2d37a1f55b6e51f7c0f65a75f17?narHash=sha256-R10v2hoJRLq8jcL4syVFag7nIGE7m13qO48wRIukWNg%3D' (2025-01-21) • Removed input 'stylix/git-hooks/nixpkgs-stable' • Updated input 'stylix/home-manager': 'github:nix-community/home-manager/bd65bc3cde04c16755955630b344bc9e35272c56?narHash=sha256-dinzAqCjenWDxuy%2BMqUQq0I4zUSfaCvN9rzuCmgMZJY%3D' (2025-01-08) → 'github:nix-community/home-manager/9d3d080aec2a35e05a15cedd281c2384767c2cfe?narHash=sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA%3D' (2025-02-17) • Updated input 'stylix/nixpkgs': 'github:NixOS/nixpkgs/47addd76727f42d351590c905d9d1905ca895b82?narHash=sha256-6qY0pk2QmUtBT9Mywdvif0i/CLVgpCjMUn6g9vB%2Bf3M%3D' (2025-01-22) → 'github:NixOS/nixpkgs/04ef94c4c1582fd485bbfdb8c4a8ba250e359195?narHash=sha256-cbrw7EgQhcdFnu6iS3vane53bEagZQy/xyIkDWpCgVE%3D' (2025-02-23) • Updated input 'stylix/tinted-tmux': 'github:tinted-theming/tinted-tmux/f0e7f7974a6441033eb0a172a0342e96722b4f14?narHash=sha256-1ohEFMC23elnl39kxWnjzH1l2DFWWx4DhFNNYDTYt54%3D' (2024-10-21) → 'github:tinted-theming/tinted-tmux/b6c7f46c8718cc484f2db8b485b06e2a98304cd0?narHash=sha256-/etfUV3HzAaLW3RSJVwUaW8ULbMn3v6wbTlXSKbcoWQ%3D' (2025-02-23)
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.