From 50066a4d208b83e63d5ebb4bc64e740e78deae59 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Tue, 31 Dec 2024 13:52:57 +0000 Subject: revert toaster --- hosts/toaster/zfs.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hosts/toaster/zfs.nix (limited to 'hosts/toaster/zfs.nix') diff --git a/hosts/toaster/zfs.nix b/hosts/toaster/zfs.nix new file mode 100644 index 0000000..f4bdeea --- /dev/null +++ b/hosts/toaster/zfs.nix @@ -0,0 +1,19 @@ +{ 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; + tmp.useTmpfs = true; + }; +} -- cgit v1.3.1