finding hyprland.conf error

This commit is contained in:
2026-03-15 12:21:49 +00:00
parent 4696250131
commit 476c4d3310
+23 -20
View File
@@ -10,8 +10,9 @@
let let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
hyprlandConfs = lib.genAttrs files (name: { hyprlandFileSymlinks = lib.genAttrs files (name: {
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
isExecutable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed
}); });
in in
{ {
@@ -31,24 +32,26 @@ in
enable = true; enable = true;
}; };
# Create symlinks in ~/.config/hypr to all the files in assets/hyprland/conf/hypr and include debug file # Create symlinks for each file in assets/hyprland/conf/hypr
xdg.configFile = home.file = {
( ".config/hypr/.keep" = {
{ text = "";
"hypr/.keep" = {
text = "";
};
}
// hyprlandConfs
)
// {
"hypr/hyprland-debug.txt" = {
text = ''
hyprlandConfigDir: ${hyprlandConfigDir}
flakeRoot: ${flakeRoot}
files: ${toString files}
'';
};
}; };
}
// lib.genAttrs files (name: {
".config/hypr/${name}" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
executable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed
};
});
# Debug statements
home.file.".config/hypr/hyprland-debug.txt" = {
text = ''
hyprlandConfigDir: ${hyprlandConfigDir}
flakeRoot: ${flakeRoot}
files: ${toString files}
'';
};
}; };
} }