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:
Andreas Zweili 2024-02-19 11:38:36 +01:00
parent 053e1c9aa0
commit 92f28f040a
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,9 @@
{ config, lib, ... }: {
config,
lib,
pkgs,
...
}:
let let
cfg = config.hardware.az-nvidia; cfg = config.hardware.az-nvidia;
in in
@ -13,13 +18,17 @@ in
XDG_DATA_HOME = "$HOME/.local/share"; XDG_DATA_HOME = "$HOME/.local/share";
}; };
}; };
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
hardware.opengl.extraPackages = [ pkgs.vaapiVdpau ];
hardware.nvidia.prime = { hardware.nvidia.prime = {
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
intelBusId = "PCI:00:02:0"; intelBusId = "PCI:00:02:0";
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
nvidiaBusId = "PCI:01:00:0"; nvidiaBusId = "PCI:01:00:0";
offload = {
enable = true;
enableOffloadCmd = true;
};
}; };
}; };
} }

View File

@ -8,7 +8,6 @@
{ {
imports = [ imports = [
inputs.nixos-hardware.nixosModules.dell-precision-5530 inputs.nixos-hardware.nixosModules.dell-precision-5530
inputs.nixos-hardware.nixosModules.common-gpu-nvidia
inputs.nixos-hardware.nixosModules.common-gpu-intel inputs.nixos-hardware.nixosModules.common-gpu-intel
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [