summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2023-09-27 14:59:46 -0400
committerJoe Mou <dev@mou.fo>2023-09-27 15:09:47 -0400
commit0fa5d0fa55bfba2936a7bbadccf36eb426b3072e (patch)
tree83f1058cab2f90039f9cf4d9c7aa95e89c0b9b4e
parent99c5a5d7d51a515592c94c94e0e0f6de14b0d125 (diff)
Play around with enabling X server
Would also want to consider raising CMA (dynamic GPU memory)
-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" ];
+ };