dotfiles/modules/system/zfs/default.nix
Alejandro Angulo 8df356ad9c
Added minimal zfs config
Still want to add an option for zfs on root later on.
2023-03-25 10:16:14 -07:00

23 lines
347 B
Nix

{
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;
};
};
}