8 cfg = config.services.mstpd;
12 options.services.mstpd = {
18 Whether to enable the multiple spanning tree protocol daemon.
24 config = mkIf cfg.enable {
25 environment.systemPackages = [ pkgs.mstpd ];
27 systemd.services.mstpd = {
28 description = "Multiple Spanning Tree Protocol Daemon";
29 wantedBy = [ "network.target" ];
30 unitConfig.ConditionCapability = "CAP_NET_ADMIN";
33 ExecStart = "@${pkgs.mstpd}/bin/mstpd mstpd";
34 PIDFile = "/run/mstpd.pid";