nixos-config/tests/modules/home-manager/services/yt-dlp/basic-job.nix

34 lines
699 B
Nix

{ config, ... }:
{
services.yt-dlp = {
enable = true;
extraArgs = [
"--no-force-overwrites"
"--write-info-json"
"--embed-chapters"
"--download-archive"
"${config.xdg.userDirs.videos}/Archive"
];
jobs.art = {
urls = [
"https://www.youtube.com/@Jazza"
"https://www.youtube.com/@bobross_thejoyofpainting"
"https://www.youtube.com/@DavidRevoy"
];
startAt = "weekly";
};
};
test.stubs.yt-dlp = { };
nmt.script = ''
assertFileExists home-files/.config/systemd/user/yt-dlp-archive-service-art.service
assertFileExists home-files/.config/systemd/user/yt-dlp-archive-service-art.timer
'';
}