{ config, lib, pkgs, flakeRoot, ... }: let # Hyprscrolling drop-in config (repo -> ~/.config) repoConf = flakeRoot.outPath + "/assets/conf/desktop/hypr/hyprscrolling.conf"; targetRel = "hypr/conf.d/90-hyprscrolling.conf"; # Overflow indicator script repoOverflowScript = flakeRoot.outPath + "/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh"; targetOverflowRel = "hypr/scripts/hyprscroll-overflow.sh"; # Adapt columnsize to monitor repoPerMonitorScript = flakeRoot.outPath + "/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.sh"; targetPerMonitor = "hypr/scripts/hyprscrolling-per-monitor.sh"; # Switch between scrolling/dwindle repoSwitchScript = flakeRoot.outPath + "/assets/conf/desktop/hypr/scripts/toggle-layout-scrolling-dwindle.sh"; targetSwitchScript = "hypr/scripts/toggle-layout-scrolling-dwindle.sh"; in { home.packages = with pkgs; [ jq ]; wayland.windowManager.hyprland = { enable = true; plugins = [ pkgs.hyprlandPlugins.hyprscrolling ]; extraConfig = '' source = ${config.xdg.configHome}/${targetRel} ''; }; # Copy repo configs/scripts into ~/.config (als echte bestanden) home.file."${targetRel}" = { source = repoConf; }; home.file."${targetOverflowRel}" = { source = repoOverflowScript; executable = true; }; home.file."${targetPerMonitor}" = { source = repoPerMonitorScript; executable = true; }; home.file."${targetSwitchScript}" = { source = repoSwitchScript; executable = true; }; }