forked from mirrors/nixpkgs
nixos/softether: apply statix suggestions
This commit is contained in:
parent
d65639ce40
commit
55acad5c35
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue