nixos-unstable fixes
This commit is contained in:
@@ -63,6 +63,7 @@ lib.mkMerge [
|
||||
#hardware.nvidia.powerManagement.enable = lib.mkDefault true; # Fix graphical corruption on suspend/resume
|
||||
#hardware.nvidia.powerManagement.finegrained = lib.mkDefault false; # Turns off GPU when not in use, Turing or newer
|
||||
|
||||
# https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/os-specific/linux/nvidia-x11/default.nix
|
||||
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
lib.mkMerge [
|
||||
|
||||
{
|
||||
# enable opengl (headless)
|
||||
|
||||
@@ -18,7 +20,11 @@
|
||||
};
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
}
|
||||
(lib.optionalAttrs (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") {
|
||||
hardware.opengl.driSupport = true;
|
||||
})
|
||||
{
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
mesa.drivers
|
||||
intel-media-driver
|
||||
@@ -34,3 +40,4 @@
|
||||
(pkgs.nvtopPackages.intel or pkgs.nvtop-intel)
|
||||
];
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user