-
-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added profile for Dell G3 3579 laptop
- Loading branch information
1 parent
d9819a6
commit 240f698
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ lib, ... }: | ||
|
||
{ | ||
imports = [ | ||
../../../common/cpu/intel/coffee-lake | ||
../../../common/gpu/nvidia/prime.nix | ||
../../../common/gpu/nvidia/pascal | ||
../../../common/pc/laptop | ||
../../../common/pc/laptop/ssd | ||
]; | ||
|
||
# Specify bus id of Nvidia and Intel graphics | ||
hardware.nvidia.prime = { | ||
intelBusId = "PCI:0:2:0"; | ||
nvidiaBusId = "PCI:1:0:0"; | ||
}; | ||
|
||
# Cooling management | ||
services.thermald.enable = lib.mkDefault true; | ||
|
||
boot = { | ||
# Use same ACPI identifier as Dell Ubuntu | ||
kernelParams = [ "acpi_osi=Linux-Dell-Video" ]; | ||
|
||
# Enable fan sensors. | ||
kernelModules = [ "dell-smm-hwmon" ]; | ||
|
||
# Forces the driver to load on unknown hardware | ||
extraModprobeConfig = "options dell-smm-hwmon ignore_dmi=1"; | ||
# NOTE: PWM fan control compatibility needs explicit whitelisting in the kernel driver's code. | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters