finding hyprland.conf error

This commit is contained in:
2026-03-15 12:29:59 +00:00
parent d0c578a5ef
commit b68ac1a338
+14 -11
View File
@@ -7,15 +7,18 @@
... ...
}: }:
let
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
in
{ {
# NixOS: Enable Hyprland # Basic Hyprland configuration
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
}; };
# Home Manager: Hyprland-specific configurations # Home Manager configuration
home-manager.users.${user.username} = { home-manager.users.${user.username} = {
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; home.stateVersion = "25.11";
home.username = user.username; home.username = user.username;
home.homeDirectory = home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
@@ -24,17 +27,17 @@
enable = true; enable = true;
}; };
# Simple symlink creation using xdg.configFile # Create config directory
xdg.configFile = { xdg.configFile = {
"hypr/hyprland.conf" = { "hypr/.keep" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; text = "";
}; };
}; };
# Manual symlink creation script # Create each file from assets
system.activationScripts.hyprlandSymlinks = '' home.file = lib.genAttrs hyprlandFiles (name: {
mkdir -p ~/.config/hypr/ target = ".config/hypr/${name}";
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/ source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
''; });
}; };
} }