From 7fc9a7663378c72d1a706a71fc0d1dba6187d690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 21 Jan 2020 23:40:49 +0100 Subject: [PATCH] fix(homeros): nvidia --- systems/homeros/configuration.nix | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/systems/homeros/configuration.nix b/systems/homeros/configuration.nix index fd58a94..e75e04f 100644 --- a/systems/homeros/configuration.nix +++ b/systems/homeros/configuration.nix @@ -22,12 +22,24 @@ boot.loader.efi.canTouchEfiVariables = true; - boot.kernelParams = [ - "acpi_backlight=none" - "acpi_backlight=video" - "acpi_backlight=vendor" - "acpi_backlight=native" - ]; + # ref https://askubuntu.com/questions/575020/ubuntu-14-04-brightness-problem-lenovo-z500 + boot.kernelParams = [ "acpi_backlight=vendor" ]; + environment.etc."X11/xorg.conf.d/80-backlight.conf".text = '' + Section "Device" + Identifier "Intel Graphics" + Driver "intel" + Option "AccelMethod" "sna" + Option "Backlight" "ideapad" + BusID "PCI:0:2:0" + EndSection + ''; + + hardware.bumblebee = { + enable = true; + connectDisplay = true; + }; + hardware.opengl.driSupport32Bit = true; + services.xserver.videoDrivers = [ "intel" "nvidia" ]; networking.hostName = "homeros";