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") {