From 5fb145662261f301d179480e8ad044f332c33c21 Mon Sep 17 00:00:00 2001
From: Leyla Becker <git@jan-leila.com>
Date: Sun, 5 May 2024 15:10:54 -0500
Subject: [PATCH] installed cachefilesd

---
 enviroments/client/default.nix           | 2 ++
 hosts/horizon/hardware-configuration.nix | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/enviroments/client/default.nix b/enviroments/client/default.nix
index fc05ac1..c0f82e0 100644
--- a/enviroments/client/default.nix
+++ b/enviroments/client/default.nix
@@ -70,5 +70,7 @@
     # system debuging tools
     iputils
     dnsutils
+
+    cachefilesd
   ];
 }
\ No newline at end of file
diff --git a/hosts/horizon/hardware-configuration.nix b/hosts/horizon/hardware-configuration.nix
index d6751d0..e83bda5 100644
--- a/hosts/horizon/hardware-configuration.nix
+++ b/hosts/horizon/hardware-configuration.nix
@@ -23,18 +23,20 @@
       fsType = "vfat";
     };
 
+  services.cachefilesd.enable = true;
+
   fileSystems."/mnt/leyla_home" =
     {
       device = "server.arpa:/home/leyla";
       fsType = "nfs";
-      options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
+      options = [ "x-systemd.automount" "user" "nofail" "soft" "x-systemd.idle-timeout=600" "fsc" ];
     };
 
   fileSystems."/mnt/share_home" =
     {
       device = "server.arpa:/home/share";
       fsType = "nfs";
-      options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
+      options = [ "x-systemd.automount" "user" "nofail" "soft" "x-systemd.idle-timeout=600" "fsc" ];
     };
 
   fileSystems."/mnt/docker_home" =