bingwp service and timer

This commit is contained in:
Ivan Dimitrov 2023-10-05 21:32:08 +03:00
parent 01d4f80315
commit c3962651c8

View File

@ -14,6 +14,26 @@
};
};
systemd.user = {
timers = {
bingwp = {
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
};
services = {
bingwp = {
Service = {
Type = "oneshot";
Environment = "PATH=${pkgs.nodejs_20}/bin";
ExecStart = "${pkgs.bash}/bin/bash -c '${pkgs.bun}/bin/bunx bingwp'";
};
};
};
};
xdg.configFile = {
"user-dirs.dirs" = {
text = ''
@ -25,3 +45,4 @@
};
};
}