From f690251f1344e65c1f40492b09f355b0b3b00d6a Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Mon, 9 Jan 2023 23:07:46 +0100 Subject: toaster: basic config, nixpkgs-fmt --- 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..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; + }; +} -- cgit v1.3.1