feat(gui): nvidia prime iGPU specialisation
Add specialisation for disabling nvidia under a prime configuration.
This commit is contained in:
parent
b01142144e
commit
40d56808e5
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,13 @@ in {
|
||||||
open = false;
|
open = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
specialisation.integratedGraphics = mkIf (cfg.type == "prime") {
|
||||||
|
configuration = {
|
||||||
|
global.gui.type = mkForce (if intel then "intel" else if amdgpu then "amdgpu" else "prime");
|
||||||
|
boot.blacklistedKernelModules = [ "nouveau" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.kernelModules =
|
boot.initrd.kernelModules =
|
||||||
optional amdgpu "amdgpu" ++
|
optional amdgpu "amdgpu" ++
|
||||||
optional intel "i915";
|
optional intel "i915";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue