remove unnecessary & duplicated code

This commit is contained in:
Franek 2025-04-14 10:40:56 +02:00
parent 725588ec9b
commit 033aa0843c
2 changed files with 2 additions and 10 deletions

View File

@ -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 = {

View File

@ -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"