From 7083deb773b9c12ef56da6a934f9f0daca95d8ba Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 29 Jan 2025 14:11:40 -0800 Subject: add affinity system --- nix/modules/nvidia.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nix/modules/nvidia.nix (limited to 'nix/modules/nvidia.nix') diff --git a/nix/modules/nvidia.nix b/nix/modules/nvidia.nix new file mode 100644 index 0000000..b59035c --- /dev/null +++ b/nix/modules/nvidia.nix @@ -0,0 +1,21 @@ +{ config, lib, pkgs, ... }: +{ + hardware = { + opengl.extraPackages = with pkgs; [ + vaapiVdpau + libvdpau-va-gl + nvidia-vaapi-driver + ]; + + nvidia = { + modesetting.enable = true; + powerManagement = { + enable = true; + finegrained = false; + }; + nvidiaSettings = true; + open = false; + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + }; +} -- cgit