fix(gui): improve withArc specialisation

This commit is contained in:
514fpv 2024-01-09 19:11:05 +08:00
parent 4a800b9d12
commit 46337a3aed
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

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}
'';
};
};