Skip to content

Instantly share code, notes, and snippets.

@Patryk27
Created June 20, 2020 08:12
Show Gist options
  • Save Patryk27/696ed8c3d7ff028c5ca84a3ee06ba745 to your computer and use it in GitHub Desktop.
Save Patryk27/696ed8c3d7ff028c5ca84a3ee06ba745 to your computer and use it in GitHub Desktop.
{ 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