infra/roles/zfs-raid.nix

25 lines
547 B
Nix
Raw Normal View History

2022-01-16 09:48:21 +01:00
{
# for mdraid 1.1
boot.loader.grub.extraConfig = "insmod mdraid1x";
services.telegraf.extraConfig.inputs.mdstat = { };
2022-01-16 09:48:21 +01:00
fileSystems."/" = {
2022-08-14 16:49:30 +02:00
device = "zroot/root/nixos";
fsType = "zfs";
2022-01-16 09:48:21 +01:00
};
fileSystems."/home" = {
device = "zroot/root/home";
fsType = "zfs";
# We don't want servers to go in systemd rescue mode, but rather having
# failed mounts show up in monitoring
options = [ "nofail" ];
};
fileSystems."/boot" = {
device = "/dev/md127";
fsType = "ext4";
options = [ "nofail" ];
};
}