Standalone package override. #2355
-
I have a standalone Nixvim package, but when I use it in my NixOS config, I want to override some configuration in it. For example, I want the colorscheme to be generated by my NixOS config. To keep it simpler, let’s say I just want to toggle line numbers. I was wondering if something like this would be possible: inputs.<standalone>.package.default.overrideAttrs {
config.opts.number = false;
}; |
Beta Was this translation helpful? Give feedback.
Answered by
MattSturgeon
Oct 3, 2024
Replies: 1 comment 1 reply
-
If you want to change/extend the module config, we provide an inputs.<standalone>.packages.${system}.default.extend {
config.opts.number = lib.mkForce false;
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
niksingh710
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
overrideAttrs
is for changing the arguments passed tomkDerivation
.If you want to change/extend the module config, we provide an
extend
function that takes a module.