jungle/m/hut/ceph.nix

21 lines
530 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
2023-08-22 15:57:49 +02:00
{
2023-08-28 17:58:21 +02:00
environment.systemPackages = [ pkgs.ceph pkgs.ceph-client ];
2023-08-22 15:57:49 +02:00
# We need the ceph module loaded as the mount.ceph binary fails to run the
# modprobe command.
boot.kernelModules = [ "ceph" ];
age.secrets."secrets/ceph-user".file = ./secrets/ceph-user.age;
2023-08-22 15:57:49 +02:00
fileSystems."/ceph" = {
fsType = "ceph";
device = "user@9c8d06e0-485f-4aaf-b16b-06d6daf1232b.cephfs=/";
options = [
"mon_addr=10.0.40.40"
"secretfile=${config.age.secrets."secrets/ceph-user".path}"
];
2023-08-22 15:57:49 +02:00
};
}