global(gui): add specialisation for disabling nvidia under a prime configuration
This commit is contained in:
parent
d3f97a71e4
commit
d9f0db25ef
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,13 @@ in {
|
|||
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 =
|
||||
optional amdgpu "amdgpu" ++
|
||||
optional intel "i915";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue