nvidia as module
This commit is contained in:
parent
bad2c4e58a
commit
da4aac2de5
@ -13,6 +13,7 @@
|
|||||||
# ./users.nix
|
# ./users.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
../../roles/desktop.nix
|
../../roles/desktop.nix
|
||||||
|
../../roles/nvidia.nix
|
||||||
|
|
||||||
# Import home-manager's NixOS module
|
# Import home-manager's NixOS module
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
12
nixos/modules/nvidia.nix
Normal file
12
nixos/modules/nvidia.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user