[ASUS] activation Nvidia PRIME

This commit is contained in:
nyanloutre 2018-10-06 01:17:07 +02:00
parent 979a00c54e
commit 2dcb9e51f5
2 changed files with 8 additions and 20 deletions

View File

@ -1,17 +0,0 @@
self: super:
let
baseConfig = {
allowUnfree = true;
};
nixpkgs-steam-56 = import (super.fetchFromGitHub {
owner = "nyanloutre";
repo = "nixpkgs";
rev = "7af3a85d8d1a91b57b6cdee0b2e5d88981f310fa";
sha256 = "1rcd0nw8k1pcp80zm8kyhk288dj5ifmxhpacm1wi5hfnhw194w1g";
}) {config = baseConfig;};
in
{
steam_primus = nixpkgs-steam-56.steamPackages.steam-chrootenv.override {
withPrimus = true;
};
}

View File

@ -12,7 +12,6 @@
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ../../overlays/steam.nix)
(import ../../overlays/ledger-udev-rules.nix) (import ../../overlays/ledger-udev-rules.nix)
]; ];
@ -22,7 +21,13 @@
boot.tmpOnTmpfs = true; boot.tmpOnTmpfs = true;
boot.plymouth.enable = true; boot.plymouth.enable = true;
hardware.bumblebee.enable = true; # NVIDIA
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.optimus_prime.enable = true;
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:1:0:0";
hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
# For Steam # For Steam
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true; hardware.pulseaudio.support32Bit = true;
@ -98,7 +103,7 @@
vlc vlc
kodiPlain kodiPlain
steam_primus steam
sc-controller sc-controller
steam-run steam-run
minecraft minecraft