The dendritic pattern (in response to comments in ‘How to define the default package for a NixOS module in a Nix flake?’)

unsure the recommended way to put a pkgs/ dir in your personal config

you could try generating a overlay with auto override for preexisting pkgs, auto callPackage for your custom ones, and auto scope creation/override similar to packagesFromDirectoryRecursive

and consume the overlay

2 Likes