summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hostnix/weebnix/boot/config.txt3
-rw-r--r--hostnix/weebnix/configuration.nix8
2 files changed, 9 insertions, 2 deletions
diff --git a/hostnix/weebnix/boot/config.txt b/hostnix/weebnix/boot/config.txt
index b407ad7..3541e27 100644
--- a/hostnix/weebnix/boot/config.txt
+++ b/hostnix/weebnix/boot/config.txt
@@ -34,3 +34,6 @@ enable_uart=1
# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
# when attempting to show low-voltage or overtemperature warnings.
avoid_warnings=1
+
+# Enable GPU.
+dtoverlay=vc4-kms-v3d
diff --git a/hostnix/weebnix/configuration.nix b/hostnix/weebnix/configuration.nix
index d0460bc..bb62b51 100644
--- a/hostnix/weebnix/configuration.nix
+++ b/hostnix/weebnix/configuration.nix
@@ -40,8 +40,12 @@
# useXkbConfig = true; # use xkbOptions in tty.
# };
- # Enable the X11 windowing system.
- # services.xserver.enable = true;
+ services.xserver = {
+ enable = true;
+ displayManager.lightdm.enable = true;
+ desktopManager.gnome.enable = true;
+ videoDrivers = [ "modesetting" "fbdev" ];
+ };