finding hyprland.conf error

This commit is contained in:
2026-03-15 12:27:22 +00:00
parent 682765f2e4
commit d0c578a5ef
+8 -13
View File
@@ -7,10 +7,6 @@
...
}:
let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
in
{
# NixOS: Enable Hyprland
programs.hyprland = {
@@ -28,18 +24,17 @@ in
enable = true;
};
# Create the config directory
# Simple symlink creation using xdg.configFile
xdg.configFile = {
"hypr/.keep" = {
text = "";
"hypr/hyprland.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
};
};
# Use home.file to create each file as a symlink
home.file = lib.genAttrs files (name: {
target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
path = "/.config/hypr/${name}";
});
# Manual symlink creation script
system.activationScripts.hyprlandSymlinks = ''
mkdir -p ~/.config/hypr/
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
'';
};
}