I’m trying to move my home manager config to a pure flake. Currently I still have a number of import (builtins.fetchGit {-statements at the top of the file to pin some specific packages.
I also have the Emacs Overlay and some additional overlays on that. I can’t figure out how to move these imports into the flake inputs and still keep the overlays. nixpkgs.overlays doesn’t seem to cover this case as I’m not overlaying the default pkgs variable (and want to keep that untouched) but rather a separate import of nixpkgs with its own version.
You can just set nixpkgs overlays. Details depend on the individual inputs you consume. Usually its something like nixpkgs.overlays = [ theInput.overlay.default ];.
How to get the inputs into the actual module is briefly described in a blogpost of mine. Even though it uses a package in the example, it is the same for overlays, just that you access a different output of the flake.