17 lines
519 B
Nix
17 lines
519 B
Nix
{ config, ... }: {
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.zfs.devNodes = "/dev/disk/by-id/";
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
services.zfs.autoScrub.interval = "weekly";
|
|
|
|
boot.extraModprobeConfig = ''
|
|
# Under low-write conditions, wait up to 30 seconds before committing data to disk
|
|
options zfs zfs_txg_timeout=30
|
|
|
|
# Stupid silent data corruption bug (https://github.com/openzfs/zfs/issues/15933)
|
|
options zfs zfs_bclone_enabled=0
|
|
options zfs zfs_dmu_offset_next_sync=0
|
|
'';
|
|
}
|