curacao: Regularly run rssVideos download
This commit is contained in:
parent
40d41a5b1d
commit
3690815630
2 changed files with 32 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
./features.nix
|
||||
./hardware.nix
|
||||
./homeautomation
|
||||
./rssVideos.nix
|
||||
./webcam
|
||||
];
|
||||
}
|
||||
|
|
31
curacao/rssVideos.nix
Normal file
31
curacao/rssVideos.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue