diff --git a/global/gui/default.nix b/global/gui/default.nix index df30fb45..d3702d26 100644 --- a/global/gui/default.nix +++ b/global/gui/default.nix @@ -75,9 +75,19 @@ in { specialisation.withArc = mkIf (cfg.arc != null) { configuration = { global.gui.arc = mkForce null; - environment.variables.DRI_PRIME = "1"; powerManagement.cpuFreqGovernor = mkForce "performance"; + }; + }; + + specialisation.withArcFull = mkIf (cfg.arc != null) { + configuration = { + global.gui.arc = mkForce null; + powerManagement.cpuFreqGovernor = mkForce "performance"; + + # set DRI_PRIME in profile to always enable offloading + environment.variables.DRI_PRIME = "1"; services.greetd.settings.default_session.command = '' + # regreet is buggy with offload enabled so we turn it off env DRI_PRIME=0 ${pkgs.dbus}/bin/dbus-run-session \ ${getExe pkgs.cage} ${escapeShellArgs config.programs.regreet.cageArgs} -- \ ${getExe config.programs.regreet.package}