1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 06:49:43 +01:00
nixos-hardware/system76/gaze18/default.nix

27 lines
462 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
imports = [
../.
2024-06-18 09:20:22 +02:00
../../common/gpu/nvidia/prime.nix
];
boot.initrd.kernelModules = [ "nvidia" ];
2024-06-21 15:44:42 +02:00
hardware.graphics = {
2024-06-16 17:50:10 +02:00
enable = lib.mkDefault true;
2024-06-21 15:44:42 +02:00
enable32Bit = lib.mkDefault true;
};
hardware.nvidia = {
# modesetting.enable = lib.mkDefault true;
2024-06-16 17:50:10 +02:00
powerManagement.finegrained = lib.mkDefault true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
}