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; allowUnfreePackages = true;
/* Hardware acceleration */ /* Hardware acceleration */
hwAccelerationGPU = "nvidia"; hwAccelerationGPU = "amd";
keymap = "fr"; keymap = "fr";

View file

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

View file

@ -24,9 +24,7 @@ with lib;
shellInit = '' shellInit = ''
set -g theme_color_scheme nord set -g theme_color_scheme nord
if [ -z $DISPLAY ] && [ "$(tty)" = /dev/tty1 ] 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-wrapped
exec ${pkgs.sway}/bin/sway
end end
''; '';
}; };