587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
22 lines
462 B
Nix
22 lines
462 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.services.bpftune;
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
|
|
options = {
|
|
services.bpftune = {
|
|
enable = lib.mkEnableOption "bpftune BPF driven auto-tuning";
|
|
|
|
package = lib.mkPackageOption pkgs "bpftune" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
|
|
};
|
|
}
|