From 8257c245b10581d698e43f8dd7d66b2a1d666238 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 22 Aug 2023 15:57:49 +0200 Subject: [PATCH] Mount the ceph filesystem in hut --- m/hut/ceph.nix | 14 ++++++++++++++ m/hut/configuration.nix | 1 + 2 files changed, 15 insertions(+) create mode 100644 m/hut/ceph.nix diff --git a/m/hut/ceph.nix b/m/hut/ceph.nix new file mode 100644 index 0000000..fab5493 --- /dev/null +++ b/m/hut/ceph.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = [ pkgs.ceph-client ]; + + # We need the ceph module loaded as the mount.ceph binary fails to run the + # modprobe command. + boot.kernelModules = [ "ceph" ]; + + fileSystems."/ceph" = { + fsType = "ceph"; + device = "animal@9c8d06e0-485f-4aaf-b16b-06d6daf1232b.cephfs=/"; + }; +} diff --git a/m/hut/configuration.nix b/m/hut/configuration.nix index 82d4c34..8e677d0 100644 --- a/m/hut/configuration.nix +++ b/m/hut/configuration.nix @@ -8,6 +8,7 @@ ./monitoring.nix ./nfs.nix ./slurm-daemon.nix + ./ceph.nix agenix.nixosModules.default ];