From 20e4e87fb6ff753f3cdde79f01f7344b7cd74a23 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Wed, 15 Jan 2025 20:27:30 -0500 Subject: [PATCH] playing with disko --- hosts/WCE-Overseer/thinkcenter-disks.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/WCE-Overseer/thinkcenter-disks.nix b/hosts/WCE-Overseer/thinkcenter-disks.nix index 936d0ef..3a3f52e 100644 --- a/hosts/WCE-Overseer/thinkcenter-disks.nix +++ b/hosts/WCE-Overseer/thinkcenter-disks.nix @@ -29,5 +29,17 @@ }; }; }; + zpool = { + zroot = { + name = "Root zpool"; + mode = "mirror"; + rootFsOptions = { + compression = "zstd"; + "com.sun:auto-snapshot" = "false"; + }; + mountpoint = "/"; + postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; + }; + }; }; }