1{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7let
8 cfg = config.services.bpftune;
9in
10{
11 meta = {
12 maintainers = with lib.maintainers; [ nickcao ];
13 };
14
15 options = {
16 services.bpftune = {
17 enable = lib.mkEnableOption "bpftune BPF driven auto-tuning";
18
19 package = lib.mkPackageOption pkgs "bpftune" { };
20 };
21 };
22
23 config = lib.mkIf cfg.enable {
24 systemd.packages = [ cfg.package ];
25 systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
26 };
27}