From f35599a59a080f0e7a173e21cae3d51dc230a212 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Fri, 15 Aug 2025 18:34:37 +0200 Subject: Revert "retire toaster" This reverts commit 1baa256be04a8b4e711a7d48a76197b5ffad6637. --- hosts/toaster/zfs.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..1970bbf --- /dev/null +++ b/hosts/toaster/zfs.nix @@ -0,0 +1,25 @@ +{ + pkgs, + ... +}: +{ + services.fstrim.enable = true; + services.zfs = { + autoSnapshot.enable = true; + trim.enable = true; + autoScrub = { + enable = true; + pools = [ "zpool" ]; + }; + }; + networking.hostId = "dca22577"; + boot = { + kernelPackages = pkgs.linuxKernel.packages.linux_6_12; + zfs.package = pkgs.zfs_2_3; + supportedFilesystems = [ "zfs" ]; + kernelParams = [ "nohibernate" ]; + plymouth.enable = false; + tmp.useTmpfs = false; + tmp.cleanOnBoot = true; + }; +} -- cgit v1.3.1