Remove the nixos-hardware nvidia option
Since I use locally set options as well it is very confusing to understand where the settings are coming from.
This commit is contained in:
parent
053e1c9aa0
commit
92f28f040a
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.hardware.az-nvidia;
|
||||
in
|
||||
|
@ -13,13 +18,17 @@ in
|
|||
XDG_DATA_HOME = "$HOME/.local/share";
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
||||
hardware.opengl.extraPackages = [ pkgs.vaapiVdpau ];
|
||||
hardware.nvidia.prime = {
|
||||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
||||
intelBusId = "PCI:00:02:0";
|
||||
|
||||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
||||
nvidiaBusId = "PCI:01:00:0";
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
{
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.dell-precision-5530
|
||||
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
|
||||
inputs.nixos-hardware.nixosModules.common-gpu-intel
|
||||
];
|
||||
boot.initrd.availableKernelModules = [
|
||||
|
|
Loading…
Reference in New Issue