rebuilding minimised nix files
This commit is contained in:
@@ -1,41 +1,13 @@
|
||||
{ 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 = lib.mkForce repoConf;
|
||||
};
|
||||
home.file."${targetOverflowRel}" = {
|
||||
source = lib.mkForce repoOverflowScript;
|
||||
executable = true;
|
||||
};
|
||||
home.file."${targetPerMonitor}" = {
|
||||
source = lib.mkForce repoPerMonitorScript;
|
||||
executable = true;
|
||||
};
|
||||
home.file."${targetSwitchScript}" = {
|
||||
source = lib.mkForce repoSwitchScript;
|
||||
executable = true;
|
||||
plugins = [ pkgs.hyprlandPlugins.hyprscrolling
|
||||
pkgs.hyprlandPlugins.hyprspace
|
||||
pkgs.hyprlandPlugins.hyprsunset
|
||||
pkgs.hyprlandPlugins.HyprEasymotion
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user