nixos-config/hosts/x86_64-linux/seraphim/rsync.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-15 21:03:34 +02:00
{
config,
lib,
pkgs,
...
}: {
# systemd.services.rsync-movies = {
# description = "Rsync Movies to Remote Server";
# serviceConfig = {
# User = "xqtc";
# ExecStart = "${pkgs.rsync}/bin/rsync -a --ignore-existing /home/crime/radarr/movies/ xqtc@88.99.90.90:~/jellyfin/movies/";
# };
# };
# systemd.services.rsync-shows = {
# description = "Rsync Shows to Remote Server";
#
# serviceConfig = {
# User = "xqtc";
# ExecStart = "${pkgs.rsync}/bin/rsync -a --ignore-existing /home/crime/sonarr/movies/ xqtc@88.99.90.90:~/jellyfin/shows/";
# };
# };
#
# systemd.timers.rsync-shows = {
# description = "Run Rsync Movies Service";
# timerConfig = {
# OnCalendar = "daily";
# Persistent = true;
# };
# wantedBy = ["timers.target"];
# };
# systemd.timers.rsync-movies = {
# description = "Run Rsync Shows Service";
# timerConfig = {
# OnCalendar = "daily";
# Persistent = true;
# };
# wantedBy = ["timers.target"];
# };
# environment.systemPackages = with pkgs; [
# rsync
# openssh
# ];
services.rsync-movies = {
enable = true;
};
}