nixos/mptcpd: init
Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
This commit is contained in:
parent
d3aff108c8
commit
39e22be299
@ -1104,6 +1104,7 @@
|
||||
./services/networking/lxd-image-server.nix
|
||||
./services/networking/magic-wormhole-mailbox-server.nix
|
||||
./services/networking/matterbridge.nix
|
||||
./services/networking/mptcpd.nix
|
||||
./services/networking/microsocks.nix
|
||||
./services/networking/mihomo.nix
|
||||
./services/networking/minidlna.nix
|
||||
|
36
nixos/modules/services/networking/mptcpd.nix
Normal file
36
nixos/modules/services/networking/mptcpd.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
cfg = config.services.mptcpd;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options = {
|
||||
|
||||
services.mptcpd = {
|
||||
|
||||
enable = lib.mkEnableOption "the Multipath TCP path management daemon";
|
||||
|
||||
package = lib.mkPackageOption pkgs "mptcpd" { };
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
systemd.packages = [ cfg.package ];
|
||||
|
||||
};
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ nim65s ];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user