diff --git a/nixos/modules/services/networking/redsocks.nix b/nixos/modules/services/networking/redsocks.nix index 852dcc8ff431..1c4ef08fdc7f 100644 --- a/nixos/modules/services/networking/redsocks.nix +++ b/nixos/modules/services/networking/redsocks.nix @@ -276,7 +276,7 @@ in description = "Redsocks"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - script = "${pkgs.redsocks}/bin/redsocks -c ${configfile}"; + serviceConfig.ExecStart = "${lib.getExe pkgs.redsocks} -c ${configfile}"; }; networking.firewall.extraCommands = iptables;