{ config, pkgs, lib, user, flakeRoot, ... }: { # NixOS: Enable Hyprland programs.hyprland = { enable = true; }; # Home Manager: Hyprland-specific configurations home-manager.users.${user.username} = { home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; home.username = user.username; home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; wayland.windowManager.hyprland = { enable = true; }; # Simple symlink creation using xdg.configFile xdg.configFile = { "hypr/hyprland.conf" = { source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; }; }; # Manual symlink creation script system.activationScripts.hyprlandSymlinks = '' mkdir -p ~/.config/hypr/ ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/ ''; }; }