diff --git a/global/gui/default.nix b/global/gui/default.nix index 9d44a37d..d2e1bd2b 100644 --- a/global/gui/default.nix +++ b/global/gui/default.nix @@ -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} + ''; }; };