Skip to content

Commit 39e22be

Browse files
nim65smweinelt
andcommitted
nixos/mptcpd: init
Co-authored-by: Martin Weinelt <[email protected]>
1 parent d3aff10 commit 39e22be

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

nixos/modules/module-list.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@
11041104
./services/networking/lxd-image-server.nix
11051105
./services/networking/magic-wormhole-mailbox-server.nix
11061106
./services/networking/matterbridge.nix
1107+
./services/networking/mptcpd.nix
11071108
./services/networking/microsocks.nix
11081109
./services/networking/mihomo.nix
11091110
./services/networking/minidlna.nix
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
let
8+
9+
cfg = config.services.mptcpd;
10+
11+
in
12+
13+
{
14+
15+
options = {
16+
17+
services.mptcpd = {
18+
19+
enable = lib.mkEnableOption "the Multipath TCP path management daemon";
20+
21+
package = lib.mkPackageOption pkgs "mptcpd" { };
22+
23+
};
24+
25+
};
26+
27+
config = lib.mkIf cfg.enable {
28+
29+
environment.systemPackages = [ cfg.package ];
30+
31+
systemd.packages = [ cfg.package ];
32+
33+
};
34+
35+
meta.maintainers = with lib.maintainers; [ nim65s ];
36+
}

0 commit comments

Comments
 (0)