mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 02:48:42 +08:00
chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ lib, config, ... }: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/maxwell
|
||||
@@ -19,16 +20,14 @@
|
||||
hardware.enableAllFirmware = lib.mkDefault true;
|
||||
|
||||
# fix suspend/resume screen corruption in sync mode
|
||||
hardware.nvidia.powerManagement =
|
||||
lib.mkIf config.hardware.nvidia.prime.sync.enable {
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
hardware.nvidia.powerManagement = lib.mkIf config.hardware.nvidia.prime.sync.enable {
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# fix screen tearing in sync mode
|
||||
hardware.nvidia.modesetting =
|
||||
lib.mkIf config.hardware.nvidia.prime.sync.enable {
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
hardware.nvidia.modesetting = lib.mkIf config.hardware.nvidia.prime.sync.enable {
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# Make the DPI the same in sync mode as in offload mode (disabled because
|
||||
# these thinkpads come with many kinds of screens, but this is valid for the
|
||||
|
||||
Reference in New Issue
Block a user