ryan4yin/nix-darwin-kickstarter

Inputs not inherited in home-manager

Closed this issue · 1 comments

Had an issue using inputs in a module. I think:

specialArgs =
  inputs
  // {
    inherit username useremail hostname;
  };

Should be:

specialArgs = { inherit inputs username useremail hostname; };

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.