add rclone to minecraft.nix
This commit is contained in:
@@ -17,4 +17,26 @@
|
||||
entrypoint = "/data/run.sh";
|
||||
log-driver = "journald";
|
||||
};
|
||||
environment.systemPackages = [ pkgs.rclone ];
|
||||
environment.etc."rclone-bluemap.conf".text = ''
|
||||
[bluemap]
|
||||
type = sftp
|
||||
host = 38.87.117.107
|
||||
user = root
|
||||
port = 9010
|
||||
connections = 256
|
||||
key_file = /root/.ssh/id_ed25519
|
||||
'';
|
||||
|
||||
fileSystems."/var/lib/minecraft/bluemap/web" = {
|
||||
device = "bluemap:/home/docker/bluemap/web/web";
|
||||
fsType = "rclone";
|
||||
options = [
|
||||
"nodev"
|
||||
"nofail"
|
||||
"allow_other"
|
||||
"args2env"
|
||||
"config=/etc/rclone-bluemap.conf"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user