try this
This commit is contained in:
parent
54f6e83fb2
commit
0cd6a3400c
1 changed files with 5 additions and 2 deletions
|
|
@ -13,14 +13,17 @@ in {
|
|||
};
|
||||
|
||||
config = lib.mkIf config.services.wanikani-fetch-data.enable {
|
||||
systemd.services.wanikani-fetch-data = {
|
||||
|
||||
systemd.user.timers.wanikani-fetch-data = {
|
||||
description = "WaniKani Fetch Data";
|
||||
# just run once everyday at 2am
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
Persistent = true;
|
||||
};
|
||||
};
|
||||
systemd.user.services.wanikani-fetch-data = {
|
||||
description = "WaniKani Fetch Data";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${lib.getExe wanikani-fetcher}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue