2023-06-29 04:25:41 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.services.bpftune;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.bpftune = {
|
2024-04-13 14:54:15 +02:00
|
|
|
enable = lib.mkEnableOption "bpftune BPF driven auto-tuning";
|
2023-06-29 04:25:41 +02:00
|
|
|
|
2023-11-30 19:03:14 +01:00
|
|
|
package = lib.mkPackageOption pkgs "bpftune" { };
|
2023-06-29 04:25:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
|
|
|
|
};
|
|
|
|
}
|