dotfiles/curacao/rssVideos.nix

40 lines
857 B
Nix

{
config,
...
}:
let
hostConfig = config;
in
{
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";
runtimeInputs = with pkgs; [
hostConfig.nix.package
];
text = ''
${config.home.homeDirectory}/.config/dotfiles/hm/scripts/rssVideos download
'';
}
);
};
};
timers.rss_videos_download = {
Timer.OnCalendar = "hourly";
Install.WantedBy = [ "timers.target" ];
};
};
};
}