From 46337a3aed29d8ad6296aeff1ad76373a9d95189 Mon Sep 17 00:00:00 2001 From: 514fpv Date: Tue, 9 Jan 2024 19:11:05 +0800 Subject: [PATCH] fix(gui): improve withArc specialisation --- global/gui/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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} + ''; }; };