london: switch to AMD gpu
This commit is contained in:
parent
cef6de408f
commit
df59d8c698
|
@ -61,7 +61,7 @@
|
|||
allowUnfreePackages = true;
|
||||
|
||||
/* Hardware acceleration */
|
||||
hwAccelerationGPU = "nvidia";
|
||||
hwAccelerationGPU = "amd";
|
||||
|
||||
keymap = "fr";
|
||||
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue