Refactor home modules into config + options
This commit is contained in:
@ -10,7 +10,7 @@ with lib;
|
||||
with mylib.modules; let
|
||||
cfg = config.modules.hyprland;
|
||||
in {
|
||||
options.modules.hyprland = import ./options.nix { inherit lib; };
|
||||
options.modules.hyprland = import ./options.nix { inherit lib mylib; };
|
||||
|
||||
config = let
|
||||
# Taken from https://github.com/Ruixi-rebirth/flakes/blob/main/modules/programs/wayland/waybar/workspace-patch.nix
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
lib
|
||||
lib,
|
||||
mylib
|
||||
}:
|
||||
with lib;
|
||||
with mylib.modules;
|
||||
{
|
||||
enable = mkEnableOpt "Hyprland Window Manager + Compositor";
|
||||
|
||||
|
Reference in New Issue
Block a user