added autocpufreq to surface config

This commit is contained in:
twoneis 2023-11-13 21:10:29 +01:00
parent 4f71edaaf8
commit c4e55845a7
2 changed files with 15 additions and 1 deletions

View file

@ -5,6 +5,20 @@
networking.hostName = "surface"; networking.hostName = "surface";
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersaver";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

View file

@ -69,7 +69,7 @@
users.users.twoneis = { users.users.twoneis = {
isNormalUser = true; isNormalUser = true;
description = "twoneis"; description = "twoneis";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" "surface-control" ];
}; };
# Allow unfree packages # Allow unfree packages