hypr: makes exectuable actually executable

This commit is contained in:
kenji
2025-12-12 11:25:16 -06:00
parent 6335cdce16
commit 4f5b41204c
+17 -7
View File
@@ -31,14 +31,24 @@ in {
}; };
home.file = lib.mkMerge [ home.file = lib.mkMerge [
# The home.file configuration is now split into two mutually exclusive blocks.
(lib.mkIf cfg.settings.hyprland.useNixForConf { (lib.mkIf cfg.settings.hyprland.useNixForConf {
".config/hypr/scripts" = { home.file = let
source = builtins.path { scriptDir = ../../.config/hypr/hyprland/scripts;
path = ../../.config/hypr/hyprland/scripts; scripts = [
}; "fuzzel-emoji.sh"
force = true; "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) { (lib.mkIf (!cfg.settings.hyprland.useNixForConf) {
".config/hypr" = { ".config/hypr" = {