Frontear / dotfiles

Configurations that power my NixOS systems
2 stars 0 forks source link

Deduplicate modules #11

Closed Frontear closed 3 weeks ago

Frontear commented 4 weeks ago

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.