diff options
author | polwex <polwex@sortug.com> | 2024-09-05 12:42:01 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2024-09-05 12:42:01 +0700 |
commit | b7ef804b1d92d409b55c955fcfbaec8ceb62063a (patch) | |
tree | e5f05241a260ca4c0bb73e9a4f40707b797ce6fb /hosts/local/nvidia.nix | |
parent | 6a7fa5ae7c243b3dd1f0d5a4221c3b69a4bdbab7 (diff) |
m
Diffstat (limited to 'hosts/local/nvidia.nix')
-rw-r--r-- | hosts/local/nvidia.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hosts/local/nvidia.nix b/hosts/local/nvidia.nix index 74d5f5d..84958a5 100644 --- a/hosts/local/nvidia.nix +++ b/hosts/local/nvidia.nix @@ -1,15 +1,18 @@ -{pkgs, ...}: { +{config, pkgs, ...}: { boot.kernelModules = ["nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm"]; # boot.kernelPackages = lib.mkForce unfreePkgs.linuxKernel.packages.linux_xanmod_latest; boot.kernelParams = ["video=HDMI-A-1:1920x1080"]; - # hardware.opengl = { + hardware.opengl = { # package = (pkgs.mesa.override { galliumDrivers = [ "i915" "swrast" ]; }).drivers; - # }; + enable = true; + }; + services.xserver = { videoDrivers = ["nvidia"]; }; hardware.nvidia = { + package = config.boot.kernelPackages.nvidiaPackages.stable; modesetting.enable = true; powerManagement.enable = true; open = true; |