nixos: add amdgpu xserver driver and move sddm back to xorg
This commit is contained in:
parent
969817faff
commit
fe84499235
16
nixos.nix
16
nixos.nix
|
@ -52,6 +52,7 @@
|
||||||
|
|
||||||
# Add AMD drivers.
|
# Add AMD drivers.
|
||||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
|
||||||
# TODO: FIX IT BEING BEING OVERWRITTEN
|
# TODO: FIX IT BEING BEING OVERWRITTEN
|
||||||
boot.extraModulePackages = [
|
boot.extraModulePackages = [
|
||||||
|
@ -207,11 +208,22 @@
|
||||||
## DESKTOP ##
|
## DESKTOP ##
|
||||||
##
|
##
|
||||||
|
|
||||||
|
# Enable XServer
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
xrandrHeads = [
|
||||||
|
{
|
||||||
|
output = "DP-2";
|
||||||
|
primary = true;
|
||||||
|
}
|
||||||
|
"DP-3"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Enable SDDM.
|
# Enable SDDM.
|
||||||
services.displayManager.sddm = {
|
services.displayManager.sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wayland.enable = true;
|
|
||||||
|
|
||||||
theme = "${import ./theming/sddm.nix { inherit pkgs; }}";
|
theme = "${import ./theming/sddm.nix { inherit pkgs; }}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue