Kiana Sheibani
fb7b45f98d
Instead of merely naming my systems "laptop", "desktop", etc. (boring), I now have them named after Aristotelian elements (cool). This also gives me an excuse to refactor my flake file.
19 lines
404 B
Nix
19 lines
404 B
Nix
{ config, lib, ... }:
|
|
lib.mkIf (config.machine == "fire") {
|
|
services.upower = {
|
|
enable = true;
|
|
|
|
usePercentageForPolicy = true;
|
|
percentageLow = 15;
|
|
percentageCritical = 5;
|
|
};
|
|
|
|
# Power and temperature management tools
|
|
services.thermald.enable = true;
|
|
services.tlp.enable = true;
|
|
services.tlp.settings = {
|
|
TLP_DEFAULT_MODE = "BAT";
|
|
TLP_PERSISTENT_DEFAULT = 1;
|
|
};
|
|
}
|