3
0
Fork 0
forked from mirrors/nixpkgs

nixos/softether: apply statix suggestions

This commit is contained in:
figsoda 2022-11-30 17:56:56 -05:00
parent d65639ce40
commit 55acad5c35

View file

@ -5,7 +5,7 @@ with lib;
let
cfg = config.services.softether;
package = cfg.package.override { dataDir = cfg.dataDir; };
package = cfg.package.override { inherit (cfg) dataDir; };
in
{
@ -88,7 +88,7 @@ in
};
}
(mkIf (cfg.vpnserver.enable) {
(mkIf cfg.vpnserver.enable {
systemd.services.vpnserver = {
description = "SoftEther VPN Server";
after = [ "softether-init.service" ];
@ -109,7 +109,7 @@ in
};
})
(mkIf (cfg.vpnbridge.enable) {
(mkIf cfg.vpnbridge.enable {
systemd.services.vpnbridge = {
description = "SoftEther VPN Bridge";
after = [ "softether-init.service" ];
@ -130,7 +130,7 @@ in
};
})
(mkIf (cfg.vpnclient.enable) {
(mkIf cfg.vpnclient.enable {
systemd.services.vpnclient = {
description = "SoftEther VPN Client";
after = [ "softether-init.service" ];