From 4f5b41204c03491b795a4e7c057a9017fbcb8b77 Mon Sep 17 00:00:00 2001 From: kenji Date: Fri, 12 Dec 2025 11:25:16 -0600 Subject: [PATCH] hypr: makes exectuable actually executable --- modules/desktop/desktop.nix | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/modules/desktop/desktop.nix b/modules/desktop/desktop.nix index 70199e782..5ed820e29 100644 --- a/modules/desktop/desktop.nix +++ b/modules/desktop/desktop.nix @@ -31,14 +31,24 @@ in { }; home.file = lib.mkMerge [ - # The home.file configuration is now split into two mutually exclusive blocks. (lib.mkIf cfg.settings.hyprland.useNixForConf { - ".config/hypr/scripts" = { - source = builtins.path { - path = ../../.config/hypr/hyprland/scripts; - }; - force = true; - }; + home.file = let + scriptDir = ../../.config/hypr/hyprland/scripts; + scripts = [ + "fuzzel-emoji.sh" + "launch_first_available.sh" + "record.sh" + "start_geoclue_agent.sh" + "workspace_action.sh" + "zoom.sh" + ]; + in + lib.genAttrs + (map (name: ".config/hypr/scripts/${name}") scripts) + (path: { + source = "${scriptDir}/${builtins.baseNameOf path}"; + executable = true; + }); }) (lib.mkIf (!cfg.settings.hyprland.useNixForConf) { ".config/hypr" = {