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 # NixOS: Enable Hyprland
programs.hyprland = { programs.hyprland = {
@@ -28,18 +24,17 @@ in
enable = true; enable = true;
}; };
# Create the config directory # Simple symlink creation using xdg.configFile
xdg.configFile = { xdg.configFile = {
"hypr/.keep" = { "hypr/hyprland.conf" = {
text = ""; source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
}; };
}; };
# Use home.file to create each file as a symlink # Manual symlink creation script
home.file = lib.genAttrs files (name: { system.activationScripts.hyprlandSymlinks = ''
target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; mkdir -p ~/.config/hypr/
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
path = "/.config/hypr/${name}"; '';
});
}; };
} }