mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
22 lines
536 B
Nix
22 lines
536 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
hardware = {
|
|
graphics = {
|
|
enable = true;
|
|
};
|
|
nvidia = {
|
|
open = true;
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
nvidiaSettings = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
|
};
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
# To fix https://forums.developer.nvidia.com/t/ubuntu-24-04-unable-to-change-power-state-from-d3cold-to-d0-device-inaccessible/304459
|
|
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
|
}
|