diff --git a/morph/lib/storage.nix b/morph/lib/storage.nix index 37efb8dfdbb4f9334607dcd694fdb6d66072f18d..243f22493b1b2313104438ff90fe03fd8f093cb9 100644 --- a/morph/lib/storage.nix +++ b/morph/lib/storage.nix @@ -1,6 +1,6 @@ # This contains all of the NixOS system configuration necessary to specify an # "storage"-type system. -{ lib, config, ...} : +{ lib, config, pkgs, ...} : let inherit (config.grid) privateKeyPath; in { @@ -49,6 +49,11 @@ in { services.private-storage.borgbackup.enable = lib.mkDefault true; + # We like to use ZFS on our storage servers. This ensures compatibility + # between the kernel and the required kernel modules. + # See https://nixos.org/manual/nixos/stable/#sec-linux-zfs + boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages; + # Turn on the Private Storage (Tahoe-LAFS) service. services.private-storage = { # Yep. Turn it on.