Compare commits
2 commits
a74cc6a140
...
41f5b1ff11
Author | SHA1 | Date | |
---|---|---|---|
Aires | 41f5b1ff11 | ||
Aires | 76bdada9e5 |
|
@ -57,11 +57,11 @@ in
|
||||||
aux.system.allowUnfree = true;
|
aux.system.allowUnfree = true;
|
||||||
|
|
||||||
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
||||||
hardware.opengl.extraPackages = with pkgs; [ vaapiVdpau ];
|
hardware.graphics.extraPackages = with pkgs; [ vaapiVdpau ];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
nvidiaSettings = lib.mkIf (config.aux.system.ui.desktops.enable) true;
|
nvidiaSettings = config.aux.system.ui.desktops.enable;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
prime = lib.mkIf cfg.hybrid.enable {
|
prime = lib.mkIf cfg.hybrid.enable {
|
||||||
|
|
||||||
|
@ -70,11 +70,11 @@ in
|
||||||
enableOffloadCmd = true; # Provides `nvidia-offload` command.
|
enableOffloadCmd = true; # Provides `nvidia-offload` command.
|
||||||
};
|
};
|
||||||
|
|
||||||
sync.enable = lib.mkIf cfg.hybrid.sync true;
|
sync.enable = cfg.hybrid.sync ;
|
||||||
|
|
||||||
nvidiaBusId = cfg.hybrid.busIDs.nvidia;
|
nvidiaBusId = cfg.hybrid.busIDs.nvidia;
|
||||||
intelBusId = lib.mkIf (cfg.hybrid.busIDs.intel != "") cfg.hybrid.busIDs.intel;
|
intelBusId = cfg.hybrid.busIDs.intel;
|
||||||
amdgpuBusId = lib.mkIf (cfg.hybrid.busIDs.amd != "") cfg.hybrid.busIDs.amd;
|
amdgpuBusId = cfg.hybrid.busIDs.amd;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue