Commit 51f84765 authored by bb2020's avatar bb2020
Browse files

nixos/xserver: add option enableTearFree

parent 0852bd6a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -453,6 +453,8 @@ in
        description = "Contents of the first Monitor section of the X server configuration file.";
      };

      enableTearFree = mkEnableOption "the TearFree option in the first Device section";

      extraConfig = mkOption {
        type = types.lines;
        default = "";
@@ -812,6 +814,7 @@ in
          Section "Device"
            Identifier "Device-${driver.name}[0]"
            Driver "${driver.driverName or driver.name}"
          ${indent (optionalString cfg.enableTearFree ''Option "TearFree" "true"'')}
          ${indent cfg.deviceSection}
          ${indent (driver.deviceSection or "")}
          ${indent xrandrDeviceSection}