6 options.programs.cpu-energy-meter = {
7 enable = lib.mkEnableOption "CPU Energy Meter";
8 package = lib.mkPackageOption pkgs "cpu-energy-meter" { };
13 cfg = config.programs.cpu-energy-meter;
16 hardware.cpu.x86.msr.enable = true;
18 security.wrappers.${cfg.package.meta.mainProgram} = {
20 group = config.hardware.cpu.x86.msr.group;
21 source = lib.getExe cfg.package;
22 capabilities = "cap_sys_rawio=ep";
26 meta.maintainers = with lib.maintainers; [ lorenzleutgeb ];