Recreated nix files
This commit is contained in:
+322
-308
File diff suppressed because it is too large
Load Diff
@@ -1,27 +1,41 @@
|
||||
{ config, lib, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
repoConf =
|
||||
flakeRoot + "/assets/conf/desktop/hypr/hyprscrolling.conf";
|
||||
|
||||
# Hyprscrolling drop-in config (repo -> ~/.config)
|
||||
repoConf = flakeRoot + "/assets/conf/desktop/hypr/hyprscrolling.conf";
|
||||
targetRel = "hypr/conf.d/90-hyprscrolling.conf";
|
||||
|
||||
# Overflow indicator script (repo -> ~/.config)
|
||||
repoOverflowScript =
|
||||
flakeRoot + "/assets/conf/desktop/hypr/scripts/hyprscroll-overflow.sh";
|
||||
targetOverflowRel = "hypr/scripts/hyprscroll-overflow.sh";
|
||||
repoPerMonitorScript =
|
||||
flakeRoot + "/assets/conf/desktop/hypr/scripts/hyprscrolling-per-monitor.sh.sh";
|
||||
targetPerMonitor = "hypr/scripts/hyprscrolling-per-monitor.sh";
|
||||
in
|
||||
{
|
||||
# Make sure Hyprland is managed by Home-Manager
|
||||
# Ensure deps for the script exist at runtime
|
||||
# (hyprctl comes with Hyprland; jq is often not installed by default)
|
||||
home.packages = with pkgs; [
|
||||
jq
|
||||
];
|
||||
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
|
||||
# Copy repo configs/scripts into ~/.config
|
||||
xdg.configFile."${targetRel}".source = repoConf;
|
||||
|
||||
xdg.configFile."${targetOverflowRel}" = {
|
||||
source = repoOverflowScript;
|
||||
executable = true; # makes it chmod +x
|
||||
};
|
||||
xdg.configFile."${targetPerMonitor}" = {
|
||||
source = repoPerMonitorScript;
|
||||
executable = true; # makes it chmod +x
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user