nvidia as module

This commit is contained in:
Mans Ziesel 2023-06-11 18:07:31 +02:00
parent bad2c4e58a
commit da4aac2de5
3 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,7 @@
# ./users.nix
./network.nix
../../roles/desktop.nix
../../roles/nvidia.nix
# Import home-manager's NixOS module
inputs.home-manager.nixosModules.home-manager

View File

@ -32,7 +32,6 @@
xkbVariant = "";
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.

12
nixos/modules/nvidia.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
imports = [
];
options = {
};
config = {
services.xserver.videoDrivers = [ "nvidia" ];
};
}