infra/nixos/hosts/eidola/zfs.nix

27 lines
443 B
Nix

{pkgs, ...}: {
boot = {
supportedFilesystems = ["zfs"];
zfs = {
forceImportRoot = false;
extraPools = ["gaia"];
};
};
services.zfs = {
autoScrub = {
enable = true;
};
};
sops.secrets."terra-key" = {
neededForUsers = true;
path = "/etc/secrets/terra.key";
};
fileSystems."/terra" = {
device = "gaia/terra";
fsType = "zfs";
};
environment.systemPackages = [pkgs.zfs];
}