diff options
Diffstat (limited to 'hosts/toaster/zfs.nix')
| -rw-r--r-- | hosts/toaster/zfs.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix new file mode 100644 index 0000000..a7e9d7a --- /dev/null +++ b/hosts/toaster/zfs.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: { + 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; + tmpOnTmpfs = true; + }; +} |
