mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
dell-xps-15-9570: fix imports, refactor (closer to recent profiles and more explicit) (#1331)
This commit is contained in:
parent
3e2ea8a49d
commit
18e9f9753e
5 changed files with 25 additions and 23 deletions
|
|
@ -1,11 +1,6 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../common/cpu/intel/kaby-lake
|
./shared.nix
|
||||||
../../../common/pc/laptop
|
|
||||||
./xps-common.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Includes the Wi-Fi and Bluetooth firmware
|
|
||||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../../common/cpu/intel
|
|
||||||
../../../../common/pc/laptop
|
|
||||||
../../../../common/gpu/nvidia/disable.nix
|
../../../../common/gpu/nvidia/disable.nix
|
||||||
../xps-common.nix
|
../shared.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Disables the Nvidia GPU, better for battery life
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../../../common/cpu/intel
|
|
||||||
../../../../common/gpu/nvidia/prime.nix
|
../../../../common/gpu/nvidia/prime.nix
|
||||||
../../../../common/gpu/nvidia/pascal
|
../../../../common/gpu/nvidia/pascal
|
||||||
../../../../common/pc/laptop
|
../shared.nix
|
||||||
../xps-common.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
20
dell/xps/15-9570/shared.nix
Normal file
20
dell/xps/15-9570/shared.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../../../common/cpu/intel/coffee-lake
|
||||||
|
../../../common/pc/laptop
|
||||||
|
];
|
||||||
|
|
||||||
|
# Solution to rcu_sched freezing
|
||||||
|
boot.kernelParams = [ "acpi_rev_override" ];
|
||||||
|
|
||||||
|
# This will save you money and possibly your life!
|
||||||
|
# https://github.com/NixOS/nixos-hardware/pull/127
|
||||||
|
services.thermald.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
enable32Bit = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# Solution to rcu_sched freezing
|
|
||||||
boot.kernelParams = [ "acpi_rev_override" ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
|
|
||||||
# This will save you money and possibly your life!
|
|
||||||
services.thermald.enable = lib.mkDefault true;
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue