diff --git a/hosts/Drone/default.nix b/hosts/Drone/default.nix index 7d40134..fba61ba 100755 --- a/hosts/Drone/default.nix +++ b/hosts/Drone/default.nix @@ -35,6 +35,19 @@ device = "zpool-mirror/backup"; fsType = "zfs"; }; + + "/mnt/external/storage" = { + device = "zpool-mirror/storage"; + fsType = "zfs"; + }; + + # bind mounts for file storage dirs from external storage + "/var/lib/nextcloud/data/2fc6e1af776402040d95e1d5adc3babe4928587e84170c882815c808b472b3fa" = { + depends = [ "/mnt/external/storage" ]; + device = "/mnt/external/storage/nextcloud/data/2fc6e1af776402040d95e1d5adc3babe4928587e84170c882815c808b472b3fa"; + fsType = "none"; + options = [ "bind" ]; + }; }; services.zfs.autoScrub.enable = true; diff --git a/modules/nixos/homeserver/zipline.nix b/modules/nixos/homeserver/zipline.nix index 2c7140b..5547cd3 100755 --- a/modules/nixos/homeserver/zipline.nix +++ b/modules/nixos/homeserver/zipline.nix @@ -10,6 +10,7 @@ enable = true; settings = { CORE_PORT = 8001; + DATASOURCE_LOCAL_DIRECTORY = "/mnt/external/storage/zipline/uploads"; FEATURES_VERSION_CHECKING = "false"; FEATURES_THUMBNAILS_NUM_THREADS = 2;