b9a7e21ef6
It is going to be merged into nixpkgs, under `nixos/hardware`. This will give better discoverability, and considering the low turnover (less than 100 commits in the last year and only 350 total) it won’t make any dent on the size of nixpkgs. We have a monorepo, let’s use it.
25 lines
778 B
Nix
25 lines
778 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../../common/cpu/intel
|
|
../../../common/pc/laptop
|
|
./xps-common.nix
|
|
];
|
|
|
|
# This configuration makes intel default and optionaly applications could run nvidia with optirun.
|
|
# To Optimize for your use case import intel or nvidia only configuration instead
|
|
# xps-9560/intel
|
|
# or
|
|
# xps-9560/nvidia
|
|
|
|
|
|
##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>"
|
|
services.xserver.videoDrivers = lib.mkDefault [ "intel" "nvidia" ];
|
|
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "bbswitch" ];
|
|
boot.extraModulePackages = lib.mkDefault [ pkgs.linuxPackages.nvidia_x11 ];
|
|
hardware.bumblebee.enable = lib.mkDefault true;
|
|
hardware.bumblebee.pmMethod = lib.mkDefault "none";
|
|
|
|
}
|