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 ];