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