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