curacao: Regularly run rssVideos download

This commit is contained in:
Geoffrey Frogeye 2025-05-17 12:39:00 +02:00
parent 40d41a5b1d
commit 3690815630
2 changed files with 32 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./features.nix
./hardware.nix
./homeautomation
./rssVideos.nix
./webcam
];
}

31
curacao/rssVideos.nix Normal file
View file

@ -0,0 +1,31 @@
{ ... }:
{
config.home-manager.users.geoffrey =
{
pkgs,
lib,
config,
...
}:
{
systemd.user = {
services.rss_videos_download = {
Service = {
Type = "oneshot";
ExecStart = lib.getExe (
pkgs.writeShellApplication {
name = "rss_videos_download";
text = ''
${config.home.homeDirectory}/.config/dotfiles/hm/scripts/rssVideos download
'';
}
);
};
};
timers.rss_videos_download = {
Timer.OnCalendar = "hourly";
Install.WantedBy = [ "timers.target" ];
};
};
};
}