london: switch to AMD gpu

This commit is contained in:
Victor Mignot 2024-04-11 08:48:54 +02:00
parent cef6de408f
commit df59d8c698
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
3 changed files with 5 additions and 7 deletions

View file

@ -61,7 +61,7 @@
allowUnfreePackages = true;
/* Hardware acceleration */
hwAccelerationGPU = "nvidia";
hwAccelerationGPU = "amd";
keymap = "fr";

View file

@ -2,7 +2,7 @@
with lib;
{
options.hwAccelerationGPU = mkOption {
type = types.nullOr (types.enum [ "nvidia" "intel" ]);
type = types.nullOr (types.enum [ "nvidia" "intel" "amd" ]);
default = null;
example = "nvidia";
description = ''
@ -30,8 +30,8 @@ with lib;
];
};
services.xserver.videoDrivers = [
(mkIf (config.hwAccelerationGPU == "nvidia") "nouveau")
services.xserver.videoDrivers = mkIf (config.hwAccelerationGPU == "nvidia") [
"nouveau"
];
};
}

View file

@ -24,9 +24,7 @@ with lib;
shellInit = ''
set -g theme_color_scheme nord
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ]
# To be used when Mesa 24.1 is out
# exec ${pkgs.sway}/bin/.sway-wrapped
exec ${pkgs.sway}/bin/sway
exec ${pkgs.sway}/bin/.sway-wrapped
end
'';
};