mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 08:59:20 +03:00
nixos/bpftune: init
This commit is contained in:
parent
002c2c038e
commit
b47c483bf8
2 changed files with 23 additions and 0 deletions
|
@ -1142,6 +1142,7 @@
|
||||||
./services/security/vaultwarden/default.nix
|
./services/security/vaultwarden/default.nix
|
||||||
./services/security/yubikey-agent.nix
|
./services/security/yubikey-agent.nix
|
||||||
./services/system/automatic-timezoned.nix
|
./services/system/automatic-timezoned.nix
|
||||||
|
./services/system/bpftune.nix
|
||||||
./services/system/cachix-agent/default.nix
|
./services/system/cachix-agent/default.nix
|
||||||
./services/system/cachix-watch-store.nix
|
./services/system/cachix-watch-store.nix
|
||||||
./services/system/cloud-init.nix
|
./services/system/cloud-init.nix
|
||||||
|
|
22
nixos/modules/services/system/bpftune.nix
Normal file
22
nixos/modules/services/system/bpftune.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ 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.mkPackageOptionMD pkgs "bpftune" { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
systemd.packages = [ cfg.package ];
|
||||||
|
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue