Created
June 20, 2020 08:12
-
-
Save Patryk27/696ed8c3d7ff028c5ca84a3ee06ba745 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: { | |
boot = { | |
kernelPackages = pkgs.linuxPackages_latest; | |
blacklistedKernelModules = [ | |
"nouveau" | |
]; | |
}; | |
environment = { | |
systemPackages = with pkgs; [ | |
nvtop | |
]; | |
}; | |
hardware = { | |
bumblebee.enable = true; | |
}; | |
nixpkgs = { | |
overlays = [ | |
(self: super: { | |
linuxPackages_latest = super.linuxPackages_latest.extend (self: super: { | |
nvidia_x11 = super.nvidia_x11.overrideAttrs (attrs: { | |
patches = [ | |
./nvidia/conftest.patch | |
]; | |
}); | |
}); | |
}) | |
]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment