From affb3eb8d1d2b287367ba92d317ff6d494a63bcd Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Mon, 16 Sep 2024 13:21:32 +0200 Subject: [PATCH] feat: set cpu scaling governor to performance on battery --- modules/core/common.nix | 2 +- modules/core/power.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/common.nix b/modules/core/common.nix index 8da191a..3658978 100644 --- a/modules/core/common.nix +++ b/modules/core/common.nix @@ -19,7 +19,7 @@ ncc = "sudo nixos-rebuild switch --upgrade-all --flake \"$(readlink -f /etc/nixos)\""; nup = "sudo nix-channel --update"; ngc = "sudo nix-collect-garbage -d"; - nda = "nixos-rebuild --flake path:$(readlink -f /etc/nixos).#APPA --build-host root@dryb.org --target-host root@dryb.org switch"; + nda = "nixos-rebuild --flake path:\"$(readlink -f /etc/nixos)\"#APPA --build-host root@dryb.org --target-host root@dryb.org switch"; dcup = "docker-compose up --detach --remove-orphans"; dka = "docker kill $(docker ps -q)"; diff --git a/modules/core/power.nix b/modules/core/power.nix index 9ff432a..3d4ea8a 100644 --- a/modules/core/power.nix +++ b/modules/core/power.nix @@ -23,7 +23,7 @@ default = { # performance | powersave CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_SCALING_GOVERNOR_ON_BAT = "performance"; # performance | balance_performance | default | balance_power | power CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; CPU_ENERGY_PERF_POLICY_ON_BAT = "power";