Loading nixos/modules/services/networking/v2raya.nix +30 −19 Original line number Diff line number Diff line Loading @@ -12,11 +12,22 @@ with lib; config = mkIf config.services.v2raya.enable { environment.systemPackages = [ pkgs.v2raya ]; systemd.services.v2raya = { systemd.services.v2raya = let nftablesEnabled = config.networking.nftables.enable; iptablesServices = [ "iptables.service" ] ++ optional config.networking.enableIPv6 "ip6tables.service"; tableServices = if nftablesEnabled then [ "nftables.service" ] else iptablesServices; in { unitConfig = { Description = "v2rayA service"; Documentation = "https://github.com/v2rayA/v2rayA/wiki"; After = [ "network.target" "nss-lookup.target" "iptables.service" "ip6tables.service" ]; After = [ "network.target" "nss-lookup.target" ] ++ tableServices; Wants = [ "network.target" ]; }; Loading Loading
nixos/modules/services/networking/v2raya.nix +30 −19 Original line number Diff line number Diff line Loading @@ -12,11 +12,22 @@ with lib; config = mkIf config.services.v2raya.enable { environment.systemPackages = [ pkgs.v2raya ]; systemd.services.v2raya = { systemd.services.v2raya = let nftablesEnabled = config.networking.nftables.enable; iptablesServices = [ "iptables.service" ] ++ optional config.networking.enableIPv6 "ip6tables.service"; tableServices = if nftablesEnabled then [ "nftables.service" ] else iptablesServices; in { unitConfig = { Description = "v2rayA service"; Documentation = "https://github.com/v2rayA/v2rayA/wiki"; After = [ "network.target" "nss-lookup.target" "iptables.service" "ip6tables.service" ]; After = [ "network.target" "nss-lookup.target" ] ++ tableServices; Wants = [ "network.target" ]; }; Loading