There's currently a lot of lib.mkEnableOption ... // { default = true; } lurking around, and there's a lot of verbose config.my.opt-name.opt-attr going around too.
I want to introduce a new lib function called lib.mkDefaultEnableOption to deduplicate the former, and I want to leverage let cfg = ...; in for the latter.
There's currently a lot of
lib.mkEnableOption ... // { default = true; }
lurking around, and there's a lot of verboseconfig.my.opt-name.opt-attr
going around too.I want to introduce a new lib function called
lib.mkDefaultEnableOption
to deduplicate the former, and I want to leveragelet cfg = ...; in
for the latter.