forked from Shinonome/dots-hyprland
hypr: makes exectuable actually executable
This commit is contained in:
@@ -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" = {
|
||||
|
||||
Reference in New Issue
Block a user