nixos/scrutiny: fix timer not auto-starting

This commit is contained in:
éclairevoyant 2024-03-12 22:12:04 -04:00
parent 3c7407062e
commit e7db1f299c
No known key found for this signature in database
GPG key ID: E3813AEAA02DB54B

View file

@ -201,17 +201,12 @@ in
Type = "oneshot";
ExecStart = "${getExe cfg.collector.package} run --config ${settingsFormat.generate "scrutiny-collector.yaml" cfg.collector.settings}";
};
startAt = cfg.collector.schedule;
};
};
timers = mkIf cfg.collector.enable {
scrutiny-collector = {
timerConfig = {
OnCalendar = cfg.collector.schedule;
Persistent = true;
Unit = "scrutiny-collector.service";
};
};
scrutiny-collector.timerConfig.Persistent = true;
};
};
};