From 8fccb40a7a302354511170a4154ae1b76c30edf7 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 23 Jul 2024 14:25:09 +0200 Subject: [PATCH] Add cached ceph FS mount point in /cache --- m/module/ceph.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/m/module/ceph.nix b/m/module/ceph.nix index cf1217f..5434b23 100644 --- a/m/module/ceph.nix +++ b/m/module/ceph.nix @@ -21,4 +21,16 @@ "secretfile=${config.age.secrets.cephUser.path}" ]; }; + + services.cachefilesd.enable = true; + + fileSystems."/cache" = { + fsType = "ceph"; + device = "user@9c8d06e0-485f-4aaf-b16b-06d6daf1232b.cephfs=/"; + options = [ + "fsc" + "mon_addr=10.0.40.40" + "secretfile=${config.age.secrets.cephUser.path}" + ]; + }; }