nixpkgs/nixos/modules/services/system/bpftune.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
470 B
Nix
Raw Normal View History

2023-06-29 10:25:41 +08:00
{
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" { };
2023-06-29 10:25:41 +08:00
};
};
config = lib.mkIf cfg.enable {
systemd.packages = [ cfg.package ];
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
};
}