diff options
author | figsoda <figsoda@pm.me> | 2022-11-30 17:56:56 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2022-11-30 17:56:56 -0500 |
commit | 55acad5c357c3f49808dc8c01982ec3ed4e2d27d (patch) | |
tree | c971c976b2f7f5eeedb784dba17257c0bd14b8e6 /nixos | |
parent | d65639ce40d4f26c362732d81e1f27fb88d6c9e5 (diff) |
nixos/softether: apply statix suggestions
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/softether.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/softether.nix b/nixos/modules/services/networking/softether.nix index 8d69b5304c88..c8e888eafcc2 100644 --- a/nixos/modules/services/networking/softether.nix +++ b/nixos/modules/services/networking/softether.nix @@ -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" ]; |