From ab08c97ead661a46cf5dd8436136e65c05c5f108 Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Mon, 17 Jul 2023 19:53:24 +0200
Subject: [PATCH] Mention filesystems for imperamenence's sake

---
 hosts/nixos/lapetus/default.nix | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix
index f42b18f..5a0a9db 100644
--- a/hosts/nixos/lapetus/default.nix
+++ b/hosts/nixos/lapetus/default.nix
@@ -39,6 +39,23 @@ in
   #   zfs rollback -r zroot@blank
   # '';
 
+  # {{{ Filesystems
+  filesystems =
+    let zfs = { neededForBoot = true; options = [ "zfsutil" ]; };
+    in
+    {
+      "/" = zfs;
+      "/nix" = zfs;
+      "/persist/data" = zfs;
+      "/persist/state" = zfs;
+      "/persist/local/cache" = zfs;
+      "/boot" = {
+        neededForBoot = true;
+        options = [ "zfsutil" "X-mount.mkdir" ];
+      };
+    };
+  # }}}
+
   # Boot
   boot.loader.grub = {
     inherit device;