5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
22 lines
476 B
Nix
22 lines
476 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.services.bpftune;
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
|
|
options = {
|
|
services.bpftune = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "bpftune BPF driven auto-tuning");
|
|
|
|
package = lib.mkPackageOptionMD pkgs "bpftune" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
|
|
};
|
|
}
|