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