summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/shinji/hardware.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/hosts/shinji/hardware.nix b/hosts/shinji/hardware.nix
index b35c2a2..1999c83 100644
--- a/hosts/shinji/hardware.nix
+++ b/hosts/shinji/hardware.nix
@@ -44,6 +44,28 @@
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
+ # nvidia
+ services.xserver.videoDrivers = ["nvidia"];
+ hardware.nvidia = {
+ modesetting.enable = true;
+ powerManagement = {
+ enable = false;
+ finegrained = false;
+ };
+ prime = {
+ sync.enable = true;
+ amdgpuBusId = "PCI:115:0:0";
+ nvidiaBusId = "PCI:1:0:0";
+ };
+ open = true;
+ nvidiaSettings = true;
+ package = config.boot.kernelPackages.nvidiaPackages.stable;
+ };
+ unfreePackages = [
+ "nvidia-x11"
+ "nvidia-settings"
+ ];
+
# luks device
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/ad489bfa-4280-44ea-8ad2-60347b516d60";
boot.initrd.luks.devices."swap".device = "/dev/disk/by-uuid/550e638d-eade-4d2f-aa39-c38774c91af3";