19 lines
398 B
Nix
19 lines
398 B
Nix
{ ... }:
|
|
{
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
boot.zfs.devNodes = "/dev/disk/by-id";
|
|
boot.initrd.systemd.enable = true;
|
|
boot.initrd.luks.devices.cryptroot = {
|
|
device = "/dev/disk/by-partlabel/cryptroot";
|
|
allowDiscards = true;
|
|
};
|
|
|
|
services.zfs = {
|
|
autoScrub.enable = true;
|
|
trim.enable = true;
|
|
autoSnapshot.enable = true;
|
|
};
|
|
|
|
services.fstrim.enable = false;
|
|
}
|