[Hardware/AMD]: remove obsolete amdgpu.freesync_video and enable seamless boot

Also, use X.org modesetting driver instead of deprecated amdgpu DDX
driver.
This commit is contained in:
Antoine Viallon 2024-04-16 19:21:24 +02:00
parent ad8310a2a1
commit bb86869b6a
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -17,8 +17,8 @@ in {
"amdgpu.cik_support" = 1;
"amdgpu.ppfeaturemask" = mkIf generalCfg.unsafeOptimizations "0xfff7ffff";
"amdgpu.freesync_video" = 1;
#"amdgpu.mes" = mkIf generalCfg.unsafeOptimizations 1;
"amdgpu.seamless" = mkIf generalCfg.unsafeOptimizations 1;
};
environment.systemPackages = with pkgs; []
@ -30,11 +30,9 @@ in {
aviallon.programs.config.rocmSupport = mkDefault devCfg.enable;
services.xserver.videoDrivers = []
++ optional cfg.useProprietary "amdgpu-pro"
++ [
"amdgpu"
];
services.xserver.videoDrivers =
optional cfg.useProprietary "amdgpu-pro"
++ [ "modesetting" ];
hardware.opengl = {
enable = true;