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