nixos/scrutiny: fix timer not auto-starting
This commit is contained in:
parent
3c7407062e
commit
e7db1f299c
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue