mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-27 21:39:43 +01:00
19 lines
430 B
Nix
19 lines
430 B
Nix
|
{ lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
../../../../common/cpu/intel
|
||
|
../../../../common/pc/laptop
|
||
|
../xps-common.nix
|
||
|
];
|
||
|
|
||
|
|
||
|
# This runs only Intel and nvidia does not drain power.
|
||
|
|
||
|
##### disable nvidia, very nice battery life.
|
||
|
hardware.nvidiaOptimus.disable = lib.mkDefault true;
|
||
|
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ];
|
||
|
services.xserver.videoDrivers = lib.mkDefault [ "intel" ];
|
||
|
|
||
|
}
|