From dc65b193fa8cd72a680d529940bcf6c849dde5c8 Mon Sep 17 00:00:00 2001 From: jay Date: Wed, 9 Jul 2025 08:33:23 -0400 Subject: [PATCH] Add xserver to enable nvidia driver. --- nodes/hosts/nixy/configuration.nix | 1 + nodes/hosts/nixy/services/xserver.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 nodes/hosts/nixy/services/xserver.nix diff --git a/nodes/hosts/nixy/configuration.nix b/nodes/hosts/nixy/configuration.nix index e418dc6..53a1a54 100644 --- a/nodes/hosts/nixy/configuration.nix +++ b/nodes/hosts/nixy/configuration.nix @@ -11,6 +11,7 @@ ./hardware-configuration.nix ./impermanence.nix ./programs/streamcontroller.nix + ./services/xserver.nix ./system/bootloader.nix ./system/environment.nix ./system/filesystems.nix diff --git a/nodes/hosts/nixy/services/xserver.nix b/nodes/hosts/nixy/services/xserver.nix new file mode 100644 index 0000000..62f3ed2 --- /dev/null +++ b/nodes/hosts/nixy/services/xserver.nix @@ -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" ]; + }; +}