From fadab4e5c3488fd4552860ed50885d5acb5e635d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 8 Feb 2020 22:41:01 +0100 Subject: ... --- sif.nix | 5 +++++ sif/boot.nix | 2 ++ 2 files changed, 7 insertions(+) diff --git a/sif.nix b/sif.nix index ea707047..7d375d98 100644 --- a/sif.nix +++ b/sif.nix @@ -330,6 +330,11 @@ nvidia = { modesetting.enable = true; + optimus_prime = { + enable = true; + nvidiaBusId = "PCI:1:0.0"; + intelBusId = "PCI:0:2.0"; + }; }; opengl.driSupport32Bit = true; diff --git a/sif/boot.nix b/sif/boot.nix index 1a6155b3..d903b16f 100644 --- a/sif/boot.nix +++ b/sif/boot.nix @@ -11,6 +11,8 @@ kernelModules = [ "dm-raid" ]; }; + blacklistedKernelModules = [ "nouveau" ]; + # Use the systemd-boot EFI boot loader. loader = { systemd-boot.enable = true; -- cgit v1.2.3