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

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

23 lines
462 B
Nix
Raw Normal View History

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