32 lines
655 B
Nix
32 lines
655 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
systemd.timers."bc-wishlist-scraper" = {
|
|
wantedBy = [ "timers.target" ];
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Unit = "bc-wishlist-scraper.service";
|
|
};
|
|
};
|
|
|
|
systemd.services."bc-wishlist-scraper" = {
|
|
script = ''
|
|
${pkgs.bash}/bin/bash /home/user/bc-wishlist-scraper/run.sh
|
|
'';
|
|
};
|
|
|
|
systemd.user.timers."scdl" = {
|
|
wantedBy = [ "timers.target" ];
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Unit = "scdl.service";
|
|
};
|
|
};
|
|
|
|
systemd.user.services."scdl" = {
|
|
script = ''
|
|
cd ~/Music/scdl && ${pkgs.scdl}/bin/scdl me -f -c --download-archive archive.txt
|
|
'';
|
|
};
|
|
}
|