From 5880629b4beba65410a177f988b468bfc19ae9bf Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Thu, 20 Mar 2025 22:59:24 +0100 Subject: [PATCH] Add ZFS pool to import on boot --- hosts/dalinar/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/dalinar/default.nix b/hosts/dalinar/default.nix index c44c64f..257dff0 100644 --- a/hosts/dalinar/default.nix +++ b/hosts/dalinar/default.nix @@ -24,9 +24,12 @@ device = lib.mkForce "/dev/disk/by-uuid/26973b85-9c65-488b-93fb-8992ea0f8d50"; crypttabExtraOpts = [ "tpm2-device=auto" ]; }; - # Required for ZFS, see https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html + # Required for ZFS, see https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html supportedFilesystems = [ "zfs" ]; - zfs.forceImportRoot = false; + zfs = { + extraPools = ["storage"]; + forceImportRoot = false; + }; }; networking = {