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