Add scheduled command module
This commit is contained in:
parent
cc0077a5ae
commit
479535c294
3 changed files with 123 additions and 142 deletions
|
|
@ -5,6 +5,7 @@
|
|||
../home-default.nix
|
||||
../../../modules/syncthing.nix
|
||||
../../../modules/tex.nix
|
||||
../../../modules/scheduled-commands.nix
|
||||
];
|
||||
|
||||
# hs-specific home configuration
|
||||
|
|
@ -13,21 +14,28 @@
|
|||
programs.yt-dlp-custom = {
|
||||
enable = true;
|
||||
downloadDir = "/mnt/storage/Media/web";
|
||||
subscriptions = {
|
||||
enable = true;
|
||||
feeds = [
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCm22FAXZMw1BaWeFszZxUKw" # Kitboga
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCYwVxWpjeKFWwu8TML-Te9A" # JCS - Criminal Psychology
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCPJVs54XcE8RrdA_uW-lfUw" # Shane McGillicuddy
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCFQMnBA3CS502aghlcr0_aw" # Coffeezilla
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCSUf5_EPEfl4zlBKZHkZdmw" # Danny Gonzalez
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UC-ufRLYrXxrIEApGn9VG5pQ" # Reject Convenience
|
||||
"https://www.youtube.com/feeds/videos.xml?channel_id=UCj1VqrHhDte54oLgPG4xpuQ" # Stuff Made Here
|
||||
];
|
||||
interval = "*-*-* 08:00:00";
|
||||
randomDelay = "1h";
|
||||
maxVideosPerFeed = 5;
|
||||
};
|
||||
};
|
||||
|
||||
# Scheduled YouTube downloads
|
||||
services.scheduled-commands = {
|
||||
enable = true;
|
||||
serviceName = "video-downloads";
|
||||
serviceDescription = "Download web videos from favorite channels";
|
||||
interval = "*-*-* 08:00:00";
|
||||
randomDelay = "1h";
|
||||
commands = [
|
||||
"dl-yt -n 3 https://www.youtube.com/@KitbogaShow"
|
||||
"dl-yt -n 3 https://www.youtube.com/@JCS"
|
||||
"dl-yt -n 3 https://www.youtube.com/@Shane_McGillicuddy"
|
||||
"dl-yt -n 3 https://www.youtube.com/@Coffeezilla"
|
||||
"dl-yt -n 3 https://www.youtube.com/@Danny-Gonzalez"
|
||||
"dl-yt -n 3 https://www.youtube.com/@rejectconvenience"
|
||||
"dl-yt -n 3 https://www.youtube.com/@StuffMadeHere"
|
||||
"dl-yt -n 3 https://www.youtube.com/@AdamSomething"
|
||||
"dl-yt -n 3 https://www.youtube.com/@_gerg"
|
||||
"dl-yt -n 3 https://www.youtube.com/@Yeah_Jaron"
|
||||
"dl-yt -n 3 https://www.youtube.com/@WolfgangsChannel"
|
||||
];
|
||||
};
|
||||
|
||||
programs.zsh.shellAliases = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue