unpacking 'github:NixOS/nixpkgs/e91a742511de59a3bc6c50bc5a68ea6b8ea3773f' into the Git cache... • Updated input 'home-manager': 'github:nix-community/home-manager/f6af7280a3390e65c2ad8fd059cdc303426cbd59?narHash=sha256-zFL6zsf/5OztR1NSNQF33dvS1fL/BzVUjabZq4qrtY4%3D' (2025-03-17) → 'github:nix-community/home-manager/0948aeedc296f964140d9429223c7e4a0702a1ff?narHash=sha256-jbqlw4sPArFtNtA1s3kLg7/A4fzP4GLk9bGbtUJg0JQ%3D' (2025-03-22) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/7105ae3957700a9646cc4b766f5815b23ed0c682?narHash=sha256-8XfURTDxOm6%2B33swQJu/hx6xw1Tznl8vJJN5HwVqckg%3D' (2025-03-20) → 'github:NixOS/nixpkgs/d02d88f8de5b882ccdde0465d8fa2db3aa1169f7?narHash=sha256-lWc%2B79eZRyvHp/SqMhHTMzZVhpxkRvthsP1Qx6UCq0E%3D' (2025-03-25) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/0740f6f238767d4caf9afe774d3e88105766dfc6?narHash=sha256-NAxwF5cjgh8o5aylhePXWNQETCWYaTpNvdO2bMfINpQ%3D' (2025-03-22) → 'github:NixOS/nixpkgs/e91a742511de59a3bc6c50bc5a68ea6b8ea3773f?narHash=sha256-IR9lx7WZXcP8Ww6Zf8tj33K/oa79M9FQ4m/YggMre6M%3D' (2025-03-28) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/bfa9810ff7104a17555ab68ebdeafb6705f129b1?narHash=sha256-QyhimDBaDBtMfRc7kyL28vo%2BHTwXRPq3hz%2BBgSJDotw%3D' (2025-03-21) → 'github:NixOS/nixpkgs/bd3bac8bfb542dbde7ffffb6987a1a1f9d41699f?narHash=sha256-jAIUqsiN2r3hCuHji80U7NNEafpIMBXiwKlSrjWMlpg%3D' (2025-03-26) • Updated input 'nixvim': 'github:nix-community/nixvim/b73beb7bb8c5ec5e559bb5222af9994e7ee4bdbd?narHash=sha256-zXkJRY/87TPX1vxlrF4941/GRHD3L%2BCFfe0/95dWT9o%3D' (2025-03-15) → 'github:nix-community/nixvim/3363fe9cc6574282a8e22e447c319e761c8019e7?narHash=sha256-ySz2mfQTFJmdwHCVbMgQRzrcIHgamKwdiwcV%2BPzDXZI%3D' (2025-03-27) • Updated input 'nixvim/git-hooks': 'github:cachix/git-hooks.nix/b5a62751225b2f62ff3147d0a334055ebadcd5cc?narHash=sha256-srpAbmJapkaqGRE3ytf3bj4XshspVR5964OX5LfjDWc%3D' (2025-03-07) → 'github:cachix/git-hooks.nix/dcf5072734cb576d2b0c59b2ac44f5050b5eac82?narHash=sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco%3D' (2025-03-22) • Updated input 'nixvim/home-manager': 'github:nix-community/home-manager/9d3d080aec2a35e05a15cedd281c2384767c2cfe?narHash=sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA%3D' (2025-02-17) → 'github:nix-community/home-manager/0948aeedc296f964140d9429223c7e4a0702a1ff?narHash=sha256-jbqlw4sPArFtNtA1s3kLg7/A4fzP4GLk9bGbtUJg0JQ%3D' (2025-03-22) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/2974bc5fa3441a319fba943f3ca41f7dcd1a1467?narHash=sha256-sScfYKtxp3CYv5fJcHQDvQjqBL%2BtPNQqS9yf9Putd%2Bs%3D' (2025-03-13) → 'github:NuschtOS/search/508752835128a3977985a4d5225ff241f7756181?narHash=sha256-i/JCrr/jApVorI9GkSV5to%2BUSrRCa0rWuQDH8JSlK2A%3D' (2025-03-22) • Updated input 'nixvim/treefmt-nix': 'github:numtide/treefmt-nix/3d0579f5cc93436052d94b73925b48973a104204?narHash=sha256-mL1szCeIsjh6Khn3nH2cYtwO5YXG6gBiTw1A30iGeDU%3D' (2025-02-17) → 'github:numtide/treefmt-nix/61c88349bf6dff49fa52d7dfc39b21026c2a8881?narHash=sha256-aRA6LSxjlbMI6MmMzi/M5WH/ynd8pK%2BvACD9za3MKLQ%3D' (2025-03-26)
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.