dotfiles/modules/system/zfs/default.nix

23 lines
347 B
Nix
Raw Normal View History

{
options,
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.aa.system.zfs;
in {
options.aa.system.zfs = with types; {
enable = mkEnableOption "zfs";
# TODO: Introduce a zfsOnRoot option
};
config = mkIf cfg.enable {
services.zfs = {
autoScrub.enable = true;
autoSnapshot.enable = true;
};
};
}