From 8d85dd15d78c9992b7fb7a089874bad45f96a72d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= <lelgenio@disroot.org>
Date: Fri, 27 Sep 2024 20:08:08 -0300
Subject: [PATCH] phantom: use NAS for syncthing data

---
 hosts/phantom/hardware-config.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hosts/phantom/hardware-config.nix b/hosts/phantom/hardware-config.nix
index 683a684..4df34c8 100644
--- a/hosts/phantom/hardware-config.nix
+++ b/hosts/phantom/hardware-config.nix
@@ -5,6 +5,12 @@
   ...
 }:
 {
+  fileSystems."/var/lib/syncthing-data" = {
+    device = "172.16.130.7:/nas/5749/syncthinng_data";
+    fsType = "nfs";
+    options = [ "nofail" ];
+  };
+
   swapDevices = [
     {
       device = "/swap/swapfile";