modesetting.enable and nvidiaSettings already default to true in nixpkgs. open was set to false via mkDefault but the imported ampere module overrides it to true with mkOverride 990, making the setting ineffective anyway.
27 lines
513 B
Nix
27 lines
513 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../../common/cpu/amd
|
|
../../common/cpu/amd/pstate.nix
|
|
../../common/gpu/amd
|
|
../../common/gpu/nvidia/prime.nix
|
|
../../common/gpu/nvidia/ampere
|
|
../../common/pc/laptop
|
|
../../common/pc/ssd
|
|
];
|
|
|
|
hardware.nvidia = {
|
|
dynamicBoost.enable = lib.mkDefault true;
|
|
|
|
prime = {
|
|
amdgpuBusId = "PCI:6:0:0";
|
|
nvidiaBusId = "PCI:1:0:0";
|
|
};
|
|
};
|
|
|
|
services = {
|
|
asusd.enable = lib.mkDefault true;
|
|
supergfxd.enable = lib.mkDefault true;
|
|
};
|
|
}
|