profile/powersave: init from legacy

This commit is contained in:
Felix Buehler 2023-02-15 20:56:33 +01:00
parent 3c3fc6f527
commit 2d7eeb3aaf
5 changed files with 28 additions and 19 deletions

View file

@ -6,6 +6,7 @@
./android
./clean
./latex
./powersave
./printing
./sync
];

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.powersave;
in
{
options.my.profiles.powersave = with lib; {
enable = mkEnableOption "powersave profile";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
powertop
s-tui
];
powerManagement = {
cpuFreqGovernor = "powersave";
powertop.enable = true;
};
services = {
thermald.enable = true;
upower.enable = true;
};
};
}