diff --git a/ops/nixos/lib/blade.nix b/ops/nixos/lib/blade.nix index 6967b02189..2ee6e74804 100644 --- a/ops/nixos/lib/blade.nix +++ b/ops/nixos/lib/blade.nix @@ -46,7 +46,12 @@ in { device = "/dev/disk/by-label/boot"; fsType = "ext4"; }; - }; + } // (lib.optionalAttrs (config.services.ceph.osd.enable || config.services.ceph.mgr.enable || config.services.ceph.mon.enable || config.services.ceph.mgr.enable) { + "/var/lib/ceph" = { + device = "/dev/disk/by-label/var-lib-ceph"; + fsType = "xfs"; + }; + }); boot.loader.grub.enable = true; boot.loader.grub.version = 2;