mirror of
https://git.gay/xqtc/nixos-config
synced 2025-05-11 14:37:31 +02:00
Compare commits
3 commits
45037361f9
...
4d2dabb453
Author | SHA1 | Date | |
---|---|---|---|
4d2dabb453 | |||
bed48d539e | |||
108a6d7acf |
3 changed files with 33 additions and 1 deletions
|
@ -215,7 +215,7 @@
|
|||
background = [
|
||||
{
|
||||
# path = "~/.config/hypr/bg.png";
|
||||
path = "screenshot";
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
blur_size = 8;
|
||||
# color = "rgb(0e1419)";
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
../../gc.nix
|
||||
../../../common/comin.nix
|
||||
./jellyfin.nix
|
||||
./sync.nix
|
||||
./monitoring.nix
|
||||
./caddy.nix
|
||||
];
|
||||
|
|
31
hosts/x86_64-linux/seraphim/sync.nix
Normal file
31
hosts/x86_64-linux/seraphim/sync.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
systemd.timers."sync-media" = {
|
||||
wantedBy = ["timers.target"];
|
||||
timerConfig = {
|
||||
OnCalendar = "daily";
|
||||
Persisten = true;
|
||||
};
|
||||
};
|
||||
systemd.services."sync-media" = {
|
||||
path = [
|
||||
pkgs.openssh
|
||||
];
|
||||
script = ''
|
||||
${pkgs.coreutils}/bin/echo "Syncing shows"
|
||||
${pkgs.rsync}/bin/rsync -a --ignore-existing --info=progress1 /home/crime/sonarr/tvseries/ xqtc@88.99.90.90:~/jellyfin/shows/
|
||||
${pkgs.coreutils}/bin/echo "Syncing movies"
|
||||
${pkgs.rsync}/bin/rsync -a --ignore-existing --info=progress1 /home/crime/radarr/movies/ xqtc@88.99.90.90:~/jellyfin/movies/
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "xqtc";
|
||||
WorkingDirectory = "/home/xqtc/";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue