Add xserver to enable nvidia driver.
This commit is contained in:
13
nodes/hosts/nixy/services/xserver.nix
Normal file
13
nodes/hosts/nixy/services/xserver.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ pkgs, ...}: {
|
||||
# Enable the X11 windowing system.
|
||||
# You can disable this if you're only using the Wayland session.
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
videoDrivers = [ "nvidia" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user