Upgrade nix to 24.11

This commit is contained in:
marc
2024-12-03 15:22:42 +01:00
parent 39cdbaa430
commit c62acaa77f
7 changed files with 160 additions and 42 deletions

View File

@@ -23,17 +23,21 @@ in
services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware = {
graphics.enable = true;
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = true;
prime = {
offload.enable = true;
hardware.nvidia.prime = {
offload.enable = true;
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
intelBusId = cfg.intelBusId;
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
intelBusId = cfg.intelBusId;
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
nvidiaBusId = cfg.nvidiaBusId;
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
nvidiaBusId = cfg.nvidiaBusId;
};
};
};
};
}