forked from Shinonome/dots-hyprland
test
This commit is contained in:
@@ -31,9 +31,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.file = lib.mkMerge [
|
home.file = lib.mkMerge [
|
||||||
(lib.mkIf cfg.settings.hyprland.useNixForConf {
|
# The home.file configuration is now split into two mutually exclusive blocks.
|
||||||
home.file = let
|
(lib.mkIf cfg.settings.hyprland.useNixForConf (
|
||||||
|
let
|
||||||
scriptDir = ../../.config/hypr/hyprland/scripts;
|
scriptDir = ../../.config/hypr/hyprland/scripts;
|
||||||
|
# List only the files that need to be executable
|
||||||
scripts = [
|
scripts = [
|
||||||
"fuzzel-emoji.sh"
|
"fuzzel-emoji.sh"
|
||||||
"launch_first_available.sh"
|
"launch_first_available.sh"
|
||||||
@@ -43,13 +45,21 @@ in {
|
|||||||
"zoom.sh"
|
"zoom.sh"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
lib.genAttrs
|
# 1. Map the individual scripts with executable = true
|
||||||
(map (name: ".config/hypr/scripts/${name}") scripts)
|
(
|
||||||
(path: {
|
lib.genAttrs
|
||||||
source = "${scriptDir}/${builtins.baseNameOf path}";
|
(map (name: ".config/hypr/scripts/${name}") scripts)
|
||||||
executable = true;
|
(path: {
|
||||||
});
|
source = "${scriptDir}/${builtins.baseNameOf path}";
|
||||||
})
|
executable = true;
|
||||||
|
})
|
||||||
|
)
|
||||||
|
# 2. Add the 'ai' directory separately (cannot use executable=true on dirs)
|
||||||
|
// {
|
||||||
|
".config/hypr/scripts/ai".source = "${scriptDir}/ai";
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
(lib.mkIf (!cfg.settings.hyprland.useNixForConf) {
|
(lib.mkIf (!cfg.settings.hyprland.useNixForConf) {
|
||||||
".config/hypr" = {
|
".config/hypr" = {
|
||||||
source = builtins.path {
|
source = builtins.path {
|
||||||
|
|||||||
Reference in New Issue
Block a user