From 27b8561d25e86d7f1e50082c71cea99969edddde Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 18 Dec 2022 13:43:56 +0200 Subject: [PATCH] nix/hm-module: add nvidiaPatches option --- nix/hm-module.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 3fea6d26..4f1f4f6b 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -8,6 +8,7 @@ self: { defaultHyprlandPackage = self.packages.${pkgs.system}.default.override { enableXWayland = cfg.xwayland.enable; hidpiXWayland = cfg.xwayland.hidpi; + nvidiaPatches = cfg.nvidiaPatches; }; in { options.wayland.windowManager.hyprland = { @@ -59,6 +60,17 @@ in { }; }; + nvidiaPatches = lib.mkOption { + type = lib.types.bool; + default = false; + defaultText = lib.literalExpression "false"; + example = lib.liberalExpression "true"; + description = '' + Patch wlroots for better Nvidia support. + ''; + }; + + extraConfig = lib.mkOption { type = lib.types.nullOr lib.types.lines; default = "";