{ config, pkgs, lib, user, flakeRoot, ... }: let hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); in { # Basic Hyprland configuration programs.hyprland = { enable = true; }; # Home Manager configuration home-manager.users.${user.username} = { home.stateVersion = "25.11"; home.username = user.username; home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; wayland.windowManager.hyprland = { enable = true; }; # Create config directory xdg.configFile = { "hypr/.keep" = { text = ""; }; }; # Create each file from assets home.file = lib.genAttrs hyprlandFiles (name: { target = ".config/hypr/${name}"; source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; }); }; }