nix/hm-module: add nvidiaPatches option

This commit is contained in:
Mihai Fufezan 2022-12-18 13:43:56 +02:00
parent 974739457f
commit 27b8561d25
No known key found for this signature in database
GPG key ID: 5899325F2F120900

View file

@ -8,6 +8,7 @@ self: {
defaultHyprlandPackage = self.packages.${pkgs.system}.default.override { defaultHyprlandPackage = self.packages.${pkgs.system}.default.override {
enableXWayland = cfg.xwayland.enable; enableXWayland = cfg.xwayland.enable;
hidpiXWayland = cfg.xwayland.hidpi; hidpiXWayland = cfg.xwayland.hidpi;
nvidiaPatches = cfg.nvidiaPatches;
}; };
in { in {
options.wayland.windowManager.hyprland = { 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 { extraConfig = lib.mkOption {
type = lib.types.nullOr lib.types.lines; type = lib.types.nullOr lib.types.lines;
default = ""; default = "";