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 {
|
config = lib.mkIf config.services.wanikani-fetch-data.enable {
|
||||||
systemd.services.wanikani-fetch-data = {
|
|
||||||
|
systemd.user.timers.wanikani-fetch-data = {
|
||||||
description = "WaniKani Fetch Data";
|
description = "WaniKani Fetch Data";
|
||||||
# just run once everyday at 2am
|
|
||||||
wantedBy = ["timers.target"];
|
wantedBy = ["timers.target"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
systemd.user.services.wanikani-fetch-data = {
|
||||||
|
description = "WaniKani Fetch Data";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${lib.getExe wanikani-fetcher}";
|
ExecStart = "${lib.getExe wanikani-fetcher}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue