nixos: add amdgpu xserver driver and move sddm back to xorg

This commit is contained in:
Alexandre Cavalheiro 2024-07-02 17:19:45 -03:00
parent 969817faff
commit fe84499235
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -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; }}";
};