1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-14 15:09:41 +01:00
nixos-hardware/apple/macmini/4/default.nix
2024-06-21 23:50:11 +02:00

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;
};
};
}