mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
Merge pull request #233 from thiagokokada/add-nvidia-disable-profile
Add nvidia-disable profile
This commit is contained in:
commit
3caaa0588e
4 changed files with 14 additions and 12 deletions
10
common/gpu/nvidia-disable.nix
Normal file
10
common/gpu/nvidia-disable.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# 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" ];
|
||||||
|
}
|
|
@ -4,6 +4,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../../common/cpu/intel
|
../../../common/cpu/intel
|
||||||
../../../common/pc/laptop
|
../../../common/pc/laptop
|
||||||
|
# To just use Intel integrated graphics with Intel's open source driver
|
||||||
|
# ../../../common/gpu/nvidia-disable
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: boot loader
|
# TODO: boot loader
|
||||||
|
@ -12,7 +14,4 @@
|
||||||
|
|
||||||
# This will save you money and possibly your life!
|
# This will save you money and possibly your life!
|
||||||
services.thermald.enable = true;
|
services.thermald.enable = true;
|
||||||
|
|
||||||
# To just use Intel integrated graphics with Intel's open source driver
|
|
||||||
# hardware.nvidiaOptimus.disable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,15 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
../../../../common/cpu/intel
|
../../../../common/cpu/intel
|
||||||
../../../../common/pc/laptop
|
../../../../common/pc/laptop
|
||||||
|
../../../../common/gpu/nvidia-disable.nix
|
||||||
../xps-common.nix
|
../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" ];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,7 @@
|
||||||
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
|
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
|
||||||
common-cpu-intel-sandy-bridge = import ./common/cpu/intel/sandy-bridge;
|
common-cpu-intel-sandy-bridge = import ./common/cpu/intel/sandy-bridge;
|
||||||
common-gpu-nvidia = import ./common/gpu/nvidia.nix;
|
common-gpu-nvidia = import ./common/gpu/nvidia.nix;
|
||||||
|
common-gpu-nvidia-disable = import ./common/gpu/nvidia-disable.nix;
|
||||||
common-pc-hdd = import ./common/pc/hdd;
|
common-pc-hdd = import ./common/pc/hdd;
|
||||||
common-pc-laptop-hdd = import ./common/pc/laptop/hdd;
|
common-pc-laptop-hdd = import ./common/pc/laptop/hdd;
|
||||||
common-pc-laptop-ssd = import ./common/pc/ssd;
|
common-pc-laptop-ssd = import ./common/pc/ssd;
|
||||||
|
|
Loading…
Reference in a new issue