Move timer target requirement

This commit is contained in:
Natsu Kagami 2023-10-17 08:01:54 +02:00
parent 6e11b80b40
commit a7cf162fe3
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -56,11 +56,10 @@ in
systemd.timers.smart-ipv6-rotator = {
description = "Rotate ipv6 routes to Google";
timerConfig = { OnCalendar = "*-*-* 00,06,12,18:00:00"; };
wantedBy = [ "invidious.service" ];
wantedBy = [ "invidious.service" "timers.target" ];
unitConfig = { };
};
systemd.services.smart-ipv6-rotator = {
wantedBy = [ "timers.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${ipv6-rotator}/bin/smart-ipv6-rotator run";