mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 12:16:32 +03:00
71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
rsync = {
|
|
enable = true;
|
|
jobs = {
|
|
archivesta-mobile-music = {
|
|
user = "root";
|
|
group = "root";
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Persistent = true;
|
|
};
|
|
sources = [
|
|
"${xlib.dirs.server-home}/Music/"
|
|
];
|
|
destination = "${xlib.dirs.mobile-drive}/Music/";
|
|
settings = {
|
|
archive = true;
|
|
delete = true;
|
|
mkpath = true;
|
|
verbose = true;
|
|
};
|
|
};
|
|
archivesta-mobile-neo = {
|
|
user = "root";
|
|
group = "root";
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Persistent = true;
|
|
};
|
|
sources = [
|
|
"${xlib.dirs.server-home}/Hosts/epral/Neo Backup/"
|
|
];
|
|
destination = "${xlib.dirs.mobile-drive}/Neo Backup/";
|
|
settings = {
|
|
archive = true;
|
|
delete = true;
|
|
mkpath = true;
|
|
verbose = true;
|
|
};
|
|
};
|
|
archivesta-services = {
|
|
user = "root";
|
|
group = "root";
|
|
timerConfig = {
|
|
OnCalendar = "daily";
|
|
Persistent = true;
|
|
};
|
|
sources = [
|
|
"${xlib.dirs.services-folder}/"
|
|
];
|
|
destination = "${xlib.dirs.archive-drive}/Services/";
|
|
settings = {
|
|
archive = true;
|
|
delete = true;
|
|
mkpath = true;
|
|
verbose = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|