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 = "";