1 { config, lib, pkgs, ... }:
6 cfg = config.powerManagement.powertop;
10 options.powerManagement.powertop.enable = mkEnableOption "powertop auto tuning on startup";
14 config = mkIf (cfg.enable) {
17 wantedBy = [ "multi-user.target" ];
18 after = [ "multi-user.target" ];
19 description = "Powertop tunings";
23 RemainAfterExit = "yes";
24 ExecStart = "${pkgs.powertop}/bin/powertop --auto-tune";