mkIf
This commit is contained in:
parent
0dc1bf6c36
commit
f473e2559f
|
@ -98,7 +98,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = if config.services.smo-server.enable then {
|
config = lib.mkIf config.services.smo-server.enable {
|
||||||
systemd.services.smo-server = with config.services.smo-server; {
|
systemd.services.smo-server = with config.services.smo-server; {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
after = ["network.target"];
|
after = ["network.target"];
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
in ''${self.packages.${system}.default.outPath}/bin/smo-server -t ${tcpPort} -u ${udpPort}'';
|
in ''${self.packages.${system}.default.outPath}/bin/smo-server -t ${tcpPort} -u ${udpPort}'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} else {};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue