mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
23 lines
474 B
Nix
23 lines
474 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.mkPackageOption pkgs "bpftune" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
|
|
};
|
|
}
|