tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
nixos/bpftune: init
Nick Cao
2 years ago
b47c483b
002c2c03
+23
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
system
bpftune.nix
+1
nixos/modules/module-list.nix
···
1142
1142
./services/security/vaultwarden/default.nix
1143
1143
./services/security/yubikey-agent.nix
1144
1144
./services/system/automatic-timezoned.nix
1145
1145
+
./services/system/bpftune.nix
1145
1146
./services/system/cachix-agent/default.nix
1146
1147
./services/system/cachix-watch-store.nix
1147
1148
./services/system/cloud-init.nix
+22
nixos/modules/services/system/bpftune.nix
···
1
1
+
{ config, lib, pkgs, ... }:
2
2
+
let
3
3
+
cfg = config.services.bpftune;
4
4
+
in
5
5
+
{
6
6
+
meta = {
7
7
+
maintainers = with lib.maintainers; [ nickcao ];
8
8
+
};
9
9
+
10
10
+
options = {
11
11
+
services.bpftune = {
12
12
+
enable = lib.mkEnableOption (lib.mdDoc "bpftune BPF driven auto-tuning");
13
13
+
14
14
+
package = lib.mkPackageOptionMD pkgs "bpftune" { };
15
15
+
};
16
16
+
};
17
17
+
18
18
+
config = lib.mkIf cfg.enable {
19
19
+
systemd.packages = [ cfg.package ];
20
20
+
systemd.services.bpftune.wantedBy = [ "multi-user.target" ];
21
21
+
};
22
22
+
}