From eeba455caadcb15e8ea8bbae33af3cc929accbce Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 4 Feb 2022 22:18:56 +0100 Subject: [PATCH] Move nextcloud to large storage --- machines/lasting-integrity/default.nix | 20 ++++++++++++++------ machines/lasting-integrity/hardware.nix | 4 ++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/machines/lasting-integrity/default.nix b/machines/lasting-integrity/default.nix index 24eb6c94..126cd92b 100644 --- a/machines/lasting-integrity/default.nix +++ b/machines/lasting-integrity/default.nix @@ -28,12 +28,20 @@ }; nix.enableDirenv = false; zfs = { - backups = [{ - path = "zroot/safe/data"; - remotePath = "zdata/recv/lasting-integrity/safe/data"; - fast = true; - location = "192.168.0.1"; - }]; + backups = [ + { + path = "zroot/safe/data"; + remotePath = "zdata/recv/lasting-integrity/safe/data"; + fast = true; + location = "192.168.0.1"; + } + { + path = "zdata/big-apps/nextcloud"; + remotePath = "zdata/recv/lasting-integrity/big-apps/nextcloud"; + fast = true; + location = "192.168.0.1"; + } + ]; rootDataset = "zroot/local/root"; }; }; diff --git a/machines/lasting-integrity/hardware.nix b/machines/lasting-integrity/hardware.nix index 061ef980..6846f931 100644 --- a/machines/lasting-integrity/hardware.nix +++ b/machines/lasting-integrity/hardware.nix @@ -42,6 +42,10 @@ fsType = "zfs"; neededForBoot = true; }; + "/data/var/lib/nextcloud" = { + device = "zdata/big-apps/nextcloud"; + fsType = "zfs"; + }; "/cache" = { device = "zroot/safe/cache"; fsType = "zfs";