From a0990bceee7b716901b7fa82114c3d8a5510d383 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 13 May 2026 22:53:05 +0100 Subject: [PATCH] Maybe fix hyprland v2_final_finalforreal_actuallyfinal --- settings/hyprland.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 26ee394..c3c4a98 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -24,10 +24,16 @@ let wrapProgram $out/bin/Hyprland \ --set LD_PRELOAD "${gcc15-lib}/lib/libstdc++.so.6" ''; - # HM's hyprland module calls package.override { enableXWayland = ... }; - # symlinkJoin has no override attr, so we attach a no-op: xwayland is - # already built into the upstream package we wrap. - }) // { override = _: hyprland-wrapped; }; + # symlinkJoin lacks passthru; restore it from the original so the display + # manager finds providedSessions, and stub override so HM's hyprland module + # (which calls package.override { enableXWayland = ... }) doesn't error. + }) // { + passthru = (hyprland-pkgs.hyprland.passthru or {}) // { + providedSessions = [ "hyprland" ]; + override = _: hyprland-wrapped; + }; + override = _: hyprland-wrapped; + }; in { config = lib.mkIf (config.networking.hostName == "FredOS-Gaming") {