-
|
I have created a wrapped version of git using 'wrap', but I want to override the username/email afterwards. How can this be achieved? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Call https://birdeehub.github.io/nix-wrapper-modules/md/getting-started.html#extending-configurations You always have access to You may need to use So, in this case, where you set it in your base module without using Things like In this way, you can even make options for yourself using |
Beta Was this translation helpful? Give feedback.
Call
.wrapagain! The package has that too! You can call it as many times as you wish.https://birdeehub.github.io/nix-wrapper-modules/md/getting-started.html#extending-configurations
You always have access to
.wrap,.apply,.eval, and.extendModules, which are all aliases for.extendModuleswith very slightly different behavior (for convenience, usually.wrapis the easiest as it then grabs the package from the result, unless you cannot pass it apkgsyet). They are present as read only values in config, as well as in passthru on the final package, which you can access from top level on the resulting package likethepackage.wrap { ??? }orthepackage.wrap ({ pkgs, ... }: { ??? })or event…