nixos-config/config/battery.nix
Kiana Sheibani fb7b45f98d
feat!: change machine hostnames
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.
2024-10-15 03:25:56 -04:00

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;
};
}