From 033aa0843c0454985bf9fbf3d3e9df997fb2376e Mon Sep 17 00:00:00 2001 From: Franek Date: Mon, 14 Apr 2025 10:40:56 +0200 Subject: [PATCH] remove unnecessary & duplicated code --- modules/desktop-environments/hyprland.nix | 10 +--------- profiles/hulk/programs.nix | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/desktop-environments/hyprland.nix b/modules/desktop-environments/hyprland.nix index 1151441..72b106c 100644 --- a/modules/desktop-environments/hyprland.nix +++ b/modules/desktop-environments/hyprland.nix @@ -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 = { diff --git a/profiles/hulk/programs.nix b/profiles/hulk/programs.nix index 550502a..a46cdb7 100644 --- a/profiles/hulk/programs.nix +++ b/profiles/hulk/programs.nix @@ -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"