refactor(home-manager/firefox): factor out options into submodules#670
refactor(home-manager/firefox): factor out options into submodules#670getchoo wants to merge 1 commit into
Conversation
different-name
left a comment
There was a problem hiding this comment.
Otherwise LGTM, haven't had the chance to test it yet
| mkFirefoxModule = | ||
| args: | ||
|
|
||
| lib.modules.importApply ./mkFirefoxModule.nix ( |
There was a problem hiding this comment.
Is the reason for separating this out into a new file so that it could be imported & used elsewhere? (even if it's external)
There was a problem hiding this comment.
It's more so to just keep each file simple
It felt kinda weird having such a massive function, and practically two cases of setting config. This is as opposed to now where mkFirefoxModule is written mostly just like a regular module, and the generation magic happens in this default.nix
Along with separating our `mkFirefoxModule` function, this should help cleanup the module as whole, while also making it much more understandable
cdebf87 to
b141cde
Compare
different-name
left a comment
There was a problem hiding this comment.
haven't tested this, but looks good to me! thank you again getchoo!
Along with separating our
mkFirefoxModulefunction, this should helpcleanup the module as whole, while also making it much more
understandable
CC @different-name