26 lines
512 B
Nix
26 lines
512 B
Nix
_:
|
|
{
|
|
boot = {
|
|
loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
};
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
initrd.systemd.enable = true;
|
|
supportedFilesystems = [ "zfs" ];
|
|
|
|
zfs = {
|
|
devNodes = "/dev/disk/by-id";
|
|
forceImportRoot = true;
|
|
forceImportAll = true;
|
|
};
|
|
kernelParams = [ "scsi_mod.scan=sync" "rootdelay=10" "zfs.zfs_arc_max=34359738368" ];
|
|
extraModprobeConfig = ''
|
|
options scsi_mod scan=sync
|
|
'';
|
|
};
|
|
}
|