From a5fae4a2899cbe43e1ba20bb1cd3859090bf83f2 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 00000000..fab54933 --- /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 82d4c346..8e677d0f 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 ];