Refactor home modules into config + options
This commit is contained in:
@ -18,7 +18,7 @@ in {
|
||||
|
||||
# Options is a vector of options this module defines
|
||||
# This module defines only the "emacs" option and suboptions "enable" and "doom"
|
||||
options.modules.emacs = import ./options.nix { inherit lib; };
|
||||
options.modules.emacs = import ./options.nix { inherit lib mylib; };
|
||||
|
||||
# Config is the merged set of all module configurations
|
||||
# Here we define what happens to the config if the module is active (but only if the module is active)
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
lib
|
||||
lib,
|
||||
mylib
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules;
|
||||
{
|
||||
enable = mkEnableOpt "Emacs module";
|
||||
|
||||
|
Reference in New Issue
Block a user