nixos-hardware/system76/gaze18/default.nix

38 lines
767 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
imports = [
../.
];
boot.initrd.kernelModules = [ "nvidia" ];
hardware.opengl = {
2024-06-16 11:50:10 -04:00
enable = lib.mkDefault true;
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
extraPackages = with pkgs; [
vaapiVdpau
];
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
2024-06-16 11:50:10 -04:00
modesetting.enable = lib.mkDefault true;
2024-06-16 11:50:10 -04:00
powerManagement.finegrained = lib.mkDefault true;
2024-06-16 11:50:10 -04:00
nvidiaSettings = lib.mkDefault true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
offload = {
enable = true;
2024-06-16 11:50:10 -04:00
enableOffloadCmd = lib.mkDefault true;
};
};
};
}