My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: update nix-config to reference consolidated monorepo

- Add pkgs-monorepo input to flake.nix
- Update zsh aliases to use monorepo tools
- Mark tools/ as deprecated with migration guide

+39 -6
+7
flake.nix
··· 38 38 nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; 39 39 40 40 mac-app-util.url = "github:hraban/mac-app-util"; 41 + 42 + # Language-agnostic monorepo with TypeScript and Rust packages 43 + pkgs-monorepo = { 44 + url = "path:../../../Developer/Git/pkgs"; 45 + inputs.nixpkgs.follows = "nixpkgs"; 46 + }; 41 47 }; 42 48 43 49 outputs = ··· 52 58 nix-vscode-extensions, 53 59 mac-app-util, 54 60 plasma-manager, 61 + pkgs-monorepo, 55 62 ... 56 63 }: 57 64 let
+4 -4
home/programs/zsh.nix
··· 64 64 gd = "git diff"; 65 65 gds = "git diff --staged"; 66 66 67 - # ── Nix tool aliases ────────────────────────────────────────────────── 68 - flake-bump = "nix run ~/.config/nix-config/tools#flake-bump"; 69 - gen-diff = "nix run ~/.config/nix-config/tools#gen-diff"; 70 - health-check = "nix run ~/.config/nix-config/tools#health-check"; 67 + # ── Nix tool aliases (from monorepo) ────────────────────────────────── 68 + flake-bump = "nix run ~/Developer/Git/pkgs#flake-bump"; 69 + gen-diff = "nix run ~/Developer/Git/pkgs#gen-diff"; 70 + health-check = "nix run ~/Developer/Git/pkgs#health-check"; 71 71 update-all = "~/.config/nix-config/home/scripts/update-all"; 72 72 update-everything = "~/.config/nix-config/home/scripts/update-everything"; 73 73
+28 -2
tools/README.md
··· 1 1 # Nix Config Tools 2 2 3 - Three Rust utilities for managing the nix config. Run via the flake — no 4 - `cargo build` required: 3 + ⚠️ **DEPRECATED** — These tools have been consolidated into the monorepo at `~/Developer/Git/pkgs/packages/nix-config-tools`. 4 + 5 + Please use the monorepo version instead: 6 + 7 + ```bash 8 + nix run ~/Developer/Git/pkgs#health-check 9 + nix run ~/Developer/Git/pkgs#flake-bump 10 + nix run ~/Developer/Git/pkgs#gen-diff 11 + nix run ~/Developer/Git/pkgs#server-config 12 + ``` 13 + 14 + Or via shell aliases (set up by `home/programs/zsh.nix`): 15 + 16 + ```bash 17 + health-check # pre-rebuild preflight 18 + flake-bump # inspect / update flake inputs 19 + gen-diff # diff package changes between generations 20 + ``` 21 + 22 + ## Migration Details 23 + 24 + The source code remains here for reference, but builds should use the monorepo flake. The nix-config flake has been updated to include the monorepo as an input (`pkgs-monorepo`), allowing the tools to be built and run efficiently within a unified workspace. 25 + 26 + --- 27 + 28 + **For historical reference, see the old documentation below. It remains accurate but all commands should now use the monorepo location.** 29 + 30 + --- 5 31 6 32 ```bash 7 33 nix run ~/.config/nix-config/tools#<tool>