helm/profiles/sync/music/default.nix

21 lines
423 B
Nix
Raw Normal View History

2022-04-23 21:16:17 -07:00
{ pkgs, lib, ... }:
{
systemd.services.get-music-sync = {
serviceConfig.Type = "oneshot";
path = [
pkgs.coreutils
pkgs.rsync
2022-04-23 21:16:17 -07:00
];
script = builtins.readFile ./get-music.sh;
serviceConfig = {
User = "anish";
};
};
systemd.timers.get-music-timer = {
wantedBy = [ "timers.target" ];
partOf = [ "get-music-sync.service" ];
timerConfig.OnCalendar = [ "daily" ];
2022-04-23 21:16:17 -07:00
};
}