nix-config/hosts/toaster/zfs.nix

20 lines
452 B
Nix
Raw Normal View History

2023-04-22 15:50:33 +02:00
{ pkgs, ... }: {
2023-01-09 23:07:46 +01:00
services.fstrim.enable = true;
services.zfs = {
autoSnapshot.enable = true;
trim.enable = true;
autoScrub = {
enable = true;
pools = [ "toasterpool" ];
};
};
networking.hostId = "dca22577";
boot = {
kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
supportedFilesystems = [ "zfs" ];
kernelParams = [ "nohibernate" ];
plymouth.enable = false;
2023-04-22 15:50:33 +02:00
tmp.useTmpfs = true;
2023-01-09 23:07:46 +01:00
};
}