mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-23 05:50:32 +01:00
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
|
{
|
||
|
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;
|
||
|
|
||
|
};
|
||
|
}
|