mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-01 16:49:40 +01:00
30 lines
541 B
Nix
30 lines
541 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkDefault;
|
|
in
|
|
{
|
|
imports = [
|
|
../.
|
|
../../../common/gpu/24.05-compat.nix
|
|
];
|
|
|
|
services.xserver.videoDrivers = mkDefault [ "nvidiaLegacy340" ];
|
|
|
|
hardware = {
|
|
graphics = {
|
|
enable = mkDefault true;
|
|
enable32Bit = mkDefault true;
|
|
};
|
|
|
|
nvidia = {
|
|
modesetting.enable = mkDefault true;
|
|
powerManagement.enable = mkDefault false;
|
|
powerManagement.finegrained = mkDefault false;
|
|
open = mkDefault false;
|
|
nvidiaSettings = mkDefault true;
|
|
};
|
|
};
|
|
}
|