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