Files
nix/modules/homelab/zfs.nix
2025-10-04 00:43:07 -05:00

28 lines
456 B
Nix

{ config, pkgs, ... }:
{
# set network host id
networking.hostId = "3e6e7055";
# enable zfs support
boot.kernelModules = [ "zfs" ];
boot.supportedFilesystems = [ "zfs" ];
# enable smart monitoring
services.smartd.enable = true;
# enable zfs
services.zfs = {
autoScrub.enable = true;
autoScrub.interval = "weekly";
# datasets = {
# "rpool/data" = {
# mountPoint = "/mnt/storage";
# };
# };
};
}