nix-config/modules/zfs/default.nix

15 lines
295 B
Nix

{ ... }:
{
flake.modules.nixos.zfs =
{ pkgs, ... }:
{
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
boot.zfs.extraPools = [ "main" ];
services.zfs = {
autoSnapshot.enable = true;
trim.enable = true;
};
};
}