From fe84499235dca973336369a8b6a6ba06809bcd47 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Tue, 2 Jul 2024 17:19:45 -0300 Subject: [PATCH] nixos: add amdgpu xserver driver and move sddm back to xorg --- nixos.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/nixos.nix b/nixos.nix index 5667f69..9c18a15 100644 --- a/nixos.nix +++ b/nixos.nix @@ -52,6 +52,7 @@ # Add AMD drivers. boot.initrd.kernelModules = [ "amdgpu" ]; + services.xserver.videoDrivers = [ "amdgpu" ]; # TODO: FIX IT BEING BEING OVERWRITTEN boot.extraModulePackages = [ @@ -207,11 +208,22 @@ ## DESKTOP ## ## + # Enable XServer + services.xserver = { + enable = true; + + xrandrHeads = [ + { + output = "DP-2"; + primary = true; + } + "DP-3" + ]; + }; + # Enable SDDM. services.displayManager.sddm = { enable = true; - wayland.enable = true; - theme = "${import ./theming/sddm.nix { inherit pkgs; }}"; };