nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

Better `package` option helpers

Open MattSturgeon opened this issue 1 year ago • 3 comments

I'd like to achieve two things here:

  • [x] #1950
  • [ ] lazy evaluation of the default

The first point should be achieved by providing the helper with a "pkgs path" that can be used with getAttrByPath and also concatStringsSep "." to provide default and defaultText respectively.

I'm not sure about the second point. Maybe we'd need a different type that is lazier, although this may break things like mkIf.

Or maybe we can do something like either package (functionTo package) and provide a lazy function that returns the package as the default?

MattSturgeon avatar Aug 10 '24 10:08 MattSturgeon