Refactor home modules into config + options
This commit is contained in:
@ -12,7 +12,7 @@ with lib;
|
||||
with mylib.modules; let
|
||||
cfg = config.modules.firefox;
|
||||
in {
|
||||
options.modules.firefox = import ./options.nix { inherit lib; };
|
||||
options.modules.firefox = import ./options.nix { inherit lib mylib; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs;
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
lib
|
||||
lib,
|
||||
mylib
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules;
|
||||
{
|
||||
enable = mkEnableOpt "Firefox";
|
||||
wayland = mkBoolOpt false "Enable firefox wayland support";
|
||||
|
Reference in New Issue
Block a user