24 lines
462 B
Nix
24 lines
462 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
systemd.services.get-tv-sync = {
|
|
serviceConfig.Type = "oneshot";
|
|
path = [
|
|
pkgs.coreutils
|
|
pkgs.openssh
|
|
pkgs.gawk
|
|
pkgs.rsync
|
|
pkgs.curl
|
|
];
|
|
script = builtins.readFile ./get-tv.sh;
|
|
serviceConfig = {
|
|
User = "anish";
|
|
};
|
|
};
|
|
systemd.timers.get-tv-sync = {
|
|
wantedBy = [ "timers.target" ];
|
|
partOf = [ "get-tv-sync.service" ];
|
|
timerConfig.OnCalendar = [ "hourly" ];
|
|
};
|
|
}
|