Pin your project settings with .nixidy.json
If you're working in a flake-less or devenv project, you've probably found yourself repeating the same --devenv or -f flags on every nixidy invocation, or relying on the auto-detection heuristics to figure out how your environment should be built. Now you can commit those choices once.
Drop a .nixidy.json in your project root:
{
"devenv": true,
"file": "k8s.nix"
}The CLI picks it up automatically. devenv pins whether the devenv build backend is used, and file sets the entrypoint nix file for flake-less builds. Both are optional, so you can set just the one you care about.
The --devenv flag has grown into --devenv/--no-devenv so you can override the config in either direction from the command line. Resolution order is:
- CLI flag (
--devenv/--no-devenv) .nixidy.json- Auto-detection (e.g.
devenv.nixpresent, noflake.nix)
The entrypoint file follows the same pattern: --file wins, then the config, then the default.nix default.
Bug Fixes
- CRDs now apply with server-side apply. Large CRDs can exceed the annotation size limit that client-side apply imposes, and server-side apply is itself incompatible with nixidy's label-based pruning.
nixidy applynow applies CRDs with--server-side --force-conflictsand skips pruning for the CRDs class only. Namespaces and regular manifests keep their existing prune behavior. #83 65cea87