diff --git a/hosts/hetzner-vm/containers/music/profiles/mpd.nix b/hosts/hetzner-vm/containers/music/profiles/mpd.nix index 8a68dce..12f828e 100644 --- a/hosts/hetzner-vm/containers/music/profiles/mpd.nix +++ b/hosts/hetzner-vm/containers/music/profiles/mpd.nix @@ -10,39 +10,6 @@ in { environment.systemPackages = with pkgs; [mpc_cli]; - systemd.tmpfiles.rules = [ - "d /Music - root root" - ]; - - systemd.services.music-sync = { - wantedBy = ["multi-user.target"]; - after = ["network.target"]; - partOf = ["mpd.service"]; - - path = with pkgs; [bash rclone mount umount]; - script = let - rclone_config = pkgs.writeText "rclone.conf" '' - [Music] - type = webdav - url = https://storage-webdav.owo.monster/music_ro/ - vendor = nextcloud - ''; - in '' - set -e - rclone --config ${rclone_config} sync Music: /Music - ''; - }; - - systemd.timers.music-sync = { - wantedBy = ["timers.target"]; - partOf = ["music-sync.service"]; - timerConfig.OnCalendar = "hourly"; - }; - - systemd.services.mpd = { - after = ["music-copy.service"]; - }; - services.mpd = { enable = true; network.listenAddress = "0.0.0.0"; diff --git a/hosts/hetzner-vm/containers/music/profiles/music-sync.nix b/hosts/hetzner-vm/containers/music/profiles/music-sync.nix index cfcb5f6..922fb68 100644 --- a/hosts/hetzner-vm/containers/music/profiles/music-sync.nix +++ b/hosts/hetzner-vm/containers/music/profiles/music-sync.nix @@ -14,7 +14,7 @@ [Music] type = webdav url = https://storage-webdav.owo.monster/MusicRO/ - vendor = nextcloud + vendor = other ''; in '' set -e diff --git a/hosts/hetzner-vm/containers/storage/profiles/rclone_config.template b/hosts/hetzner-vm/containers/storage/profiles/rclone_config.template index d3a54f3..06cdb43 100644 --- a/hosts/hetzner-vm/containers/storage/profiles/rclone_config.template +++ b/hosts/hetzner-vm/containers/storage/profiles/rclone_config.template @@ -1,6 +1,6 @@ [StorageBox-Remote] type = webdav -vendor = nextcloud +vendor = other host = u323231.your-storagebox.de url = https://u323231.your-storagebox.de user = u323231 @@ -69,7 +69,7 @@ remote = B2-Phoenix-Cryptidz-Storage-Source:Phoenix-Cryptidz-Storage [PutIO-WebDAV] type = webdav url = https://webdav.put.io -vendor = nextcloud +vendor = other user = chaoticryptidz pass = PUTIO_PASSWORD diff --git a/hosts/hetzner-vm/data/misskey_rclone.template b/hosts/hetzner-vm/data/misskey_rclone.template index 7b1fabc..f44ecd0 100644 --- a/hosts/hetzner-vm/data/misskey_rclone.template +++ b/hosts/hetzner-vm/data/misskey_rclone.template @@ -1,7 +1,7 @@ [Misskey-Storage] type = webdav url = https://storage-webdav.owo.monster/Misskey/ -vendor = nextcloud +vendor = other user = misskey pass = MISSKEY_STORAGE_PASSWORD