diff --git a/SwarselSystems.org b/SwarselSystems.org index ed59f07d..6542d739 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -7716,7 +7716,7 @@ Also, the system state version is set here. No need to touch it. services."restart-pia-monthly" = { script = '' - sudo systemctl restart pia-pf.service + systemctl restart pia-pf.service ''; serviceConfig = { Type = "oneshot"; @@ -7754,8 +7754,8 @@ Also, the system state version is set here. No need to touch it. services."hourly-services" = { script = '' - sudo -u vpn -i -- curl -c /opt/persists/mam.cookies -b /opt/persists/mam.cookies - sudo /etc/openvpn/iptables.sh + ${pkgs.sudo}/bin/sudo -u vpn -i -- ${pkgs.curl}/bin/curl -c /opt/persists/mam.cookies -b /opt/persists/mam.cookies + ${pkgs.sudo}/bin/sudo /etc/openvpn/iptables.sh ''; serviceConfig = { Type = "oneshot"; diff --git a/profiles/server/common/transmission.nix b/profiles/server/common/transmission.nix index 4a8e98a5..97a4d428 100644 --- a/profiles/server/common/transmission.nix +++ b/profiles/server/common/transmission.nix @@ -141,7 +141,7 @@ services."restart-pia-monthly" = { script = '' - sudo systemctl restart pia-pf.service + systemctl restart pia-pf.service ''; serviceConfig = { Type = "oneshot"; @@ -179,8 +179,8 @@ services."hourly-services" = { script = '' - sudo -u vpn -i -- curl -c /opt/persists/mam.cookies -b /opt/persists/mam.cookies - sudo /etc/openvpn/iptables.sh + ${pkgs.sudo}/bin/sudo -u vpn -i -- ${pkgs.curl}/bin/curl -c /opt/persists/mam.cookies -b /opt/persists/mam.cookies + ${pkgs.sudo}/bin/sudo /etc/openvpn/iptables.sh ''; serviceConfig = { Type = "oneshot";