global(gui): improve withArc specialisation

This commit is contained in:
514fpv 2024-01-09 19:11:05 +08:00
parent fc4605869c
commit 21c57a2b54
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ

View file

@ -74,6 +74,13 @@ in {
specialisation.withArc = mkIf (cfg.arc != null) {
configuration = {
global.gui.arc = mkForce null;
environment.variables.DRI_PRIME = "1";
powerManagement.cpuFreqGovernor = mkForce "performance";
services.greetd.settings.default_session.command = ''
env DRI_PRIME=0 ${pkgs.dbus}/bin/dbus-run-session \
${getExe pkgs.cage} ${escapeShellArgs config.programs.regreet.cageArgs} -- \
${getExe config.programs.regreet.package}
'';
};
};