-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules/nixpkgs: init #2022
base: main
Are you sure you want to change the base?
modules/nixpkgs: init #2022
Conversation
Getting this because I'm not yet setting a default for
This is making me think we should be re-evaluating how we decide which However I'm thinking it may make more sense to use the |
4feafb4
to
b8ad815
Compare
It was a conscious decision to use the pkgs imported from the environment, changing this would be a huge breaking change, as it would break all nixpkgs overlays defined in home-manager or nixpkgs. |
Yeah, it is definitely a breaking change, that's why I was kinda reluctant in my earlier comments. I'm a bit more convinced now though. I also think we could come up with a reasonable deprecation strategy too. Right now I'm just exploring the implementation; I'll probably open a smaller PR with the initial subset of changes soon. I believe our current approach of inheriting the host module's nixpkgs instance is one of the major contributing factors to mismatched nixpkgs lock issues. As for a way to toggle using the host's pkgs or not, I agree that's something we can do. It would also be something users can do manually: { pkgs, ... }:
{
programs.nixvim.nixpkgs.pkgs = pkgs;
} So maybe it's better to just document that rather than add wrapper-specific options to do it automatically? |
Make `pkgs` available to files submodules by passing _all_ module args through. We already did this for `specialArgs`.
827594e
to
1fa0af5
Compare
TODO: - cleanup module copied from nixpkgs - remove deprecated options we don't need - provide wrapper option to use/not use host pkgs - deprecate passing pkgs to standalone wrapper? - consider implications for `helpers` that use `pkgs`
This should probably be considered a legacy/deprecated behaviour?
1fa0af5
to
289f9fd
Compare
This is often an intended behaviour, so just assume any option whose default throws is not a package-type option
WIP draft to fix #1784
defaultPkgs
special arg withpkgsPath
TODO
nixpkgs
module to top-level modules_module.args
infiles
submodulespkgs
instancepkgs
is passed tomakeNixvim
useHostPackages
option (default true for now)programs.nixvim.nixpkgs.pkgs = pkgs
themselves?path
to be overridden