Inputs not inherited in home-manager
21CSM opened this issue · 1 comments
21CSM commented
Had an issue using inputs
in a module. I think:
specialArgs =
inputs
// {
inherit username useremail hostname;
};
Should be:
specialArgs = { inherit inputs username useremail hostname; };
ryan4yin commented
I think there's no right or wrong here; it's more of a personal choice.
Personally, I don't like the inputs.xxx
usage style, as it seems a bit too verbose.
By using the specialArgs = inputs // { ... };
approach, I can directly omit the inputs.
prefix and use whatever I want in the submodule, with the trade-off being that I need to be careful to avoid parameter name conflicts myself.