unpacking 'github:NixOS/nixpkgs/314e12ba369ccdb9b352a4db26ff419f7c49fa84' into the Git cache... unpacking 'github:NixOS/nixpkgs/52af6223520a471bf962c88a7db66ee8a5d5fcc3' into the Git cache... unpacking 'github:NixOS/nixpkgs/71a6392e367b08525ee710a93af2e80083b5b3e2' into the Git cache... unpacking 'github:nix-community/nixvim/58d2a5ac9cc4ff987e6edb77f2b55d1dec05ce50' into the Git cache... • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/a0f3e10d94359665dba45b71b4227b0aeb851f8e?narHash=sha256-KWwINTQelKOoQgrXftxoqxmKFZb9pLVfnRvK270nkVk%3D' (2024-12-10) → 'github:NixOS/nixpkgs/314e12ba369ccdb9b352a4db26ff419f7c49fa84?narHash=sha256-5fNndbndxSx5d%2BC/D0p/VF32xDiJCJzyOqorOYW4JEo%3D' (2024-12-13) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/65dcbb7320af3bb75d83582190eac9139d445b1f?narHash=sha256-leReM3aGj6E04Ta9NESJLL0J4yPEOtC8jkoSj86mMVA%3D' (2024-12-14) → 'github:NixOS/nixpkgs/52af6223520a471bf962c88a7db66ee8a5d5fcc3?narHash=sha256-wm2XWp4c4oTuNDM8PvdLTn8CQ/1Ko7SsX3bF7H%2BIKus%3D' (2024-12-15) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/5a48e3c2e435e95103d56590188cfed7b70e108c?narHash=sha256-xyiHLs6KJ1fxeGmcCxKjJE4yJknVJxbC8Y/ZRYyC8WE%3D' (2024-12-11) → 'github:NixOS/nixpkgs/71a6392e367b08525ee710a93af2e80083b5b3e2?narHash=sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU%3D' (2024-12-13) • Updated input 'nixvim': 'github:nix-community/nixvim/f13bdfec8f2c5786362a78f555ff3577c2a59591?narHash=sha256-WUy5BbFBwTPZJpgxm1yJ9YOdw9i18xoGZW1e1yxFM28%3D' (2024-12-14) → 'github:nix-community/nixvim/58d2a5ac9cc4ff987e6edb77f2b55d1dec05ce50?narHash=sha256-vp3wSbCVU/4y5W%2BYI6H9PSix3WD7XbcIyesmB7W0ZWo%3D' (2024-12-15) • Updated input 'nixvim/git-hooks': 'github:cachix/git-hooks.nix/6f4e2a2112050951a314d2733a994fbab94864c6?narHash=sha256-SVQVsbafSM1dJ4fpgyBqLZ%2BLft%2BjcQuMtEL3lQWx2Sk%3D' (2024-12-04) → 'github:cachix/git-hooks.nix/d8c02f0ffef0ef39f6063731fc539d8c71eb463a?narHash=sha256-%2BXTFXYlFJBxohhMGLDpYdEnhUNdxN8dyTA8WAd%2Blh2A%3D' (2024-12-08) • Updated input 'nixvim/home-manager': 'github:nix-community/home-manager/d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a?narHash=sha256-i5ay20XsvpW91N4URET/nOc0VQWOAd4c4vbqYtcH8Rc%3D' (2024-12-06) → 'github:nix-community/home-manager/66c5d8b62818ec4c1edb3e941f55ef78df8141a8?narHash=sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4%3D' (2024-12-13) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/68e9fad70d95d08156cf10a030bd39487bed8ffe?narHash=sha256-315rJ7O9cOllPDaFscnJhcMleORHbxon0Kq9LAKJ5p4%3D' (2024-12-05) → 'github:NuschtOS/search/3051be7f403bff1d1d380e4612f0c70675b44fc9?narHash=sha256-Y47y%2BLesOCkJaLvj%2BdI/Oa6FAKj/T9sKVKDXLNsViPw%3D' (2024-12-09) • Updated input 'nixvim/treefmt-nix': 'github:numtide/treefmt-nix/50862ba6a8a0255b87377b9d2d4565e96f29b410?narHash=sha256-qKL3vjO%2BIXFQ0nTinFDqNq/sbbnnS5bMI1y0xX215fU%3D' (2024-12-05) → 'github:numtide/treefmt-nix/0ce9d149d99bc383d1f2d85f31f6ebd146e46085?narHash=sha256-s4DalCDepD22jtKL5Nw6f4LP5UwoMcPzPZgHWjAfqbQ%3D' (2024-12-09)
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.