From ae34815e37e6a3cb953a78f7e3b9d46684a00fd2 Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Thu, 22 Oct 2026 22:25:17 +0100 Subject: [PATCH] patch niri with gles2 fix https://github.com/niri-wm/niri/pull/4720 --- common/os/niri.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/common/os/niri.nix b/common/os/niri.nix index cda305f..70b6ae2 100644 --- a/common/os/niri.nix +++ b/common/os/niri.nix @@ -13,11 +13,21 @@ let rev = "01fbdeef22b76df85ea168fbfe1bfd9e63681b30"; hash = "sha256-GMSVw35Q+294GlrTUKlx087E31z7KurReQ1YHSKp5iw="; }) { inherit (pkgs.stdenv.hostPlatform) system; }).niri; + niri-patched = pkgs.niri.overrideAttrs ( + finalAttrs: prevAttrs: { + patches = prevAttrs.patches ++ [ + (pkgs.fetchurl { + url = "https://github.com/niri-wm/niri/pull/4720.patch"; + hash = "sha256-5c+5o3oHPnc5X/u0PeGCZcwSQmEK+t32gaq3OsEIKRw="; + }) + ]; + } + ); in lib.mkIf (cfg.desktop.enable && (cfg.desktop.compositor == "niri")) { programs.niri = { enable = true; - package = lib.mkDefault (if cfg.legacyGpu then niri-legacy else pkgs.niri); + package = lib.mkDefault niri-patched; # (if cfg.legacyGpu then niri-legacy else pkgs.niri); useNautilus = lib.mkDefault false; withUWSM = lib.mkDefault true; withXDG = lib.mkDefault true; -- knotmirror 0.0.1