rclone bodges due to changed nextcloud remote vendor changes
see also: https://github.com/rclone/rclone/issues/7160
This commit is contained in:
parent
43cefeb3ef
commit
d310972844
|
@ -10,39 +10,6 @@
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = with pkgs; [mpc_cli];
|
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 = {
|
services.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
network.listenAddress = "0.0.0.0";
|
network.listenAddress = "0.0.0.0";
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
[Music]
|
[Music]
|
||||||
type = webdav
|
type = webdav
|
||||||
url = https://storage-webdav.owo.monster/MusicRO/
|
url = https://storage-webdav.owo.monster/MusicRO/
|
||||||
vendor = nextcloud
|
vendor = other
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
set -e
|
set -e
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[StorageBox-Remote]
|
[StorageBox-Remote]
|
||||||
type = webdav
|
type = webdav
|
||||||
vendor = nextcloud
|
vendor = other
|
||||||
host = u323231.your-storagebox.de
|
host = u323231.your-storagebox.de
|
||||||
url = https://u323231.your-storagebox.de
|
url = https://u323231.your-storagebox.de
|
||||||
user = u323231
|
user = u323231
|
||||||
|
@ -69,7 +69,7 @@ remote = B2-Phoenix-Cryptidz-Storage-Source:Phoenix-Cryptidz-Storage
|
||||||
[PutIO-WebDAV]
|
[PutIO-WebDAV]
|
||||||
type = webdav
|
type = webdav
|
||||||
url = https://webdav.put.io
|
url = https://webdav.put.io
|
||||||
vendor = nextcloud
|
vendor = other
|
||||||
user = chaoticryptidz
|
user = chaoticryptidz
|
||||||
pass = PUTIO_PASSWORD
|
pass = PUTIO_PASSWORD
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[Misskey-Storage]
|
[Misskey-Storage]
|
||||||
type = webdav
|
type = webdav
|
||||||
url = https://storage-webdav.owo.monster/Misskey/
|
url = https://storage-webdav.owo.monster/Misskey/
|
||||||
vendor = nextcloud
|
vendor = other
|
||||||
user = misskey
|
user = misskey
|
||||||
pass = MISSKEY_STORAGE_PASSWORD
|
pass = MISSKEY_STORAGE_PASSWORD
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue