feat: inherited Nvidia configuration from old conf
This commit is contained in:
parent
f10f6922fb
commit
8fecc5f592
7 changed files with 117 additions and 82 deletions
34
nixos/nvidia.nix
Normal file
34
nixos/nvidia.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
specialisation = {
|
||||
powersave.configuration = {
|
||||
hardware.nvidia.prime = {
|
||||
offload = {
|
||||
enable = lib.mkForce true;
|
||||
enableOffloadCmd = lib.mkForce true;
|
||||
};
|
||||
sync.enable = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
};
|
||||
hardware.nvidia = {
|
||||
prime = {
|
||||
offload.enable = false;
|
||||
sync = {
|
||||
enable = true;
|
||||
};
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
forceFullCompositionPipeline = true;
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue