31 lines
541 B
Nix
31 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;
|
|
};
|
|
};
|
|
}
|