{ config, lib, pkgs, flakeRoot, ... }: let repoConf = flakeRoot + "/assets/conf/desktop/hypr/hyprscrolling.conf"; targetRel = "hypr/conf.d/90-hyprscrolling.conf"; in { # Make sure Hyprland is managed by Home-Manager wayland.windowManager.hyprland = { enable = true; # Load the plugin plugins = [ pkgs.hyprlandPlugins.hyprscrolling ]; # Source the drop-in config extraConfig = '' source = ~/.config/${targetRel} ''; }; # Copy your repo config into ~/.config xdg.configFile."${targetRel}".source = repoConf; }