bingwp service and timer
This commit is contained in:
parent
01d4f80315
commit
c3962651c8
@ -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 = {
|
xdg.configFile = {
|
||||||
"user-dirs.dirs" = {
|
"user-dirs.dirs" = {
|
||||||
text = ''
|
text = ''
|
||||||
@ -25,3 +45,4 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user