From 68e5bf2438262eea9255f3396754e6225ec30e88 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 3 Apr 2022 11:52:29 -0700 Subject: simplify multimedia for the desktop I don't need to have systemd units to synchronize medias from a desktop to the NAS: I'll download all the medias on the NAS directly. I don't need to have a module for each type of media, there's not enough configuration to justify that complexity. I also don't need anymore mpd and co. as I'm using navidrome to host the music on the NAS and sublime-music to listen to it on the desktop. --- users/fcuny/desktop/media/sync-videos.nix | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 users/fcuny/desktop/media/sync-videos.nix (limited to 'users/fcuny/desktop/media/sync-videos.nix') diff --git a/users/fcuny/desktop/media/sync-videos.nix b/users/fcuny/desktop/media/sync-videos.nix deleted file mode 100644 index ced319d..0000000 --- a/users/fcuny/desktop/media/sync-videos.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ config, pkgs, ... }: - -{ - systemd.user.services.sync-videos = { - Unit = { - Description = "synchronize my videos to the NAS"; - Documentation = "man:rsync(1)"; - ConditionFileIsExecutable = "${pkgs.rsync}/bin/rsync"; - }; - Service = { - Type = "oneshot"; - ExecStart = "${pkgs.rsync}/bin/rysnc -avz -t %h/media/videos/ nas.home:/data/videos/incoming"; - }; - }; - - systemd.user.timers.sync-videos = { - Unit = { - Description = "synchronize my videos to the NAS"; - Documentation = "man:rsync(1)"; - }; - Timer = { - OnBootSec = "120m"; - OnUnitActiveSec = "1d"; - RandomizedDelaySec = "1800"; - Persistent = true; - }; - Install = { WantedBy = [ "timers.target" ]; }; - }; -} -- cgit v1.2.3