summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2023-01-22 02:02:03 +0100
committerstuebinm2023-01-22 02:02:03 +0100
commitc6f9f98a7255102762c1bfb8493fe52aed0f760b (patch)
treea6f278eba9036be86c2593adb06a13a38f23d133
parent6b8b2fca2c1a6039db2c99956f0142ebb755ebf5 (diff)
ilex: fix some stuff
Diffstat (limited to '')
-rw-r--r--common/desktop.nix2
-rw-r--r--ilex/configuration.nix23
2 files changed, 24 insertions, 1 deletions
diff --git a/common/desktop.nix b/common/desktop.nix
index 37626ee..4430c33 100644
--- a/common/desktop.nix
+++ b/common/desktop.nix
@@ -29,7 +29,7 @@
users.defaultUserShell = pkgs.fish;
users.users.stuebinm = {
isNormalUser = true;
- extraGroups = [ "docker" "wheel" "networking" ];
+ extraGroups = [ "docker" "wheel" "networking" "video" ];
home = "/home/stuebinm";
hashedPassword = "$6$IULsCnY7HjDHAJWs$05DYuwXsfWWKj6m3KTWCPp5k9HuQikIamNBzn2GihMG8oeEf5c8YkXlwuO6uTnX8ZFmyAQdhXfO5yYNEM/YTm0";
useDefaultShell = true;
diff --git a/ilex/configuration.nix b/ilex/configuration.nix
index 9486547..866b1e3 100644
--- a/ilex/configuration.nix
+++ b/ilex/configuration.nix
@@ -28,5 +28,28 @@
system.stateVersion = "22.11";
+
+ services.tlp = {
+ enable = true;
+ settings = {
+ START_CHARGE_THRESH_BAT0 = 75;
+ STOP_CHARGE_THRESH_BAT0 = 80;
+ PLATFORM_PROFILE_ON_AC = "performance";
+ PLATFORM_PROFILE_ON_BAT = "low-power";
+ CPU_SCALING_GOVERNOR_ON_AC = "performance";
+ CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
+ DEVICES_TO_ENABLE_ON_STARTUP = "wifi";
+ DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wwan";
+ DEVICES_TO_DISABLE_ON_LAN_CONNECT = "wifi";
+ DEVICES_TO_ENABLE_ON_LAN_DISCONNECT = "wifi";
+ WIFI_PWR_ON_AC = "off";
+ WIFI_PWR_ON_BAT = "on";
+ USB_AUTOSUSPEND = 1;
+ USB_EXCLUDE_AUDIO = 1;
+ };
+ };
+
+
+
}