remove unnecessary & duplicated code
This commit is contained in:
parent
725588ec9b
commit
033aa0843c
@ -25,12 +25,6 @@
|
|||||||
description = "Additional plugins for Hyprland";
|
description = "Additional plugins for Hyprland";
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceFiles = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
description = "Config files to source";
|
|
||||||
default = [ ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.modules.hyprland.enable {
|
config = lib.mkIf config.modules.hyprland.enable {
|
||||||
@ -49,9 +43,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
plugins = config.modules.hyprland.plugins;
|
plugins = config.modules.hyprland.plugins;
|
||||||
settings = config.modules.hyprland.additionalConfig // {
|
settings = config.modules.hyprland.additionalConfig;
|
||||||
source = config.modules.hyprland.sourceFiles;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
additionalPackages = with pkgs; [ hyprshot ];
|
additionalPackages = with pkgs; [ hyprshot ];
|
||||||
plugins = with pkgs.hyprlandPlugins; [ hyprspace ];
|
plugins = with pkgs.hyprlandPlugins; [ hyprspace ];
|
||||||
sourceFiles = [
|
additionalConfig.source = [
|
||||||
"~/.config/hypr/config/animations.conf"
|
"~/.config/hypr/config/animations.conf"
|
||||||
"~/.config/hypr/config/autostart.conf"
|
"~/.config/hypr/config/autostart.conf"
|
||||||
"~/.config/hypr/config/binds.conf"
|
"~/.config/hypr/config/binds.conf"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user