From 770415d8147049c1e4995070d1e381d5b58cf874 Mon Sep 17 00:00:00 2001 From: macronova Date: Mon, 9 Dec 2024 15:39:16 +0000 Subject: [PATCH] Fix zrepl --- linux/quasar/disko.nix | 5 +---- linux/quasar/zfs.nix | 8 +++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/linux/quasar/disko.nix b/linux/quasar/disko.nix index 7518492..7b11a49 100644 --- a/linux/quasar/disko.nix +++ b/linux/quasar/disko.nix @@ -100,10 +100,7 @@ type = "zpool"; inherit options rootFsOptions; datasets = { - snapshot = { - type = "zfs_fs"; - mountpoint = "/snapshot"; - }; + snapshot.type = "zfs_fs"; # Reserve space for performance reservation = { type = "zfs_fs"; diff --git a/linux/quasar/zfs.nix b/linux/quasar/zfs.nix index cacdc8f..aeba4af 100644 --- a/linux/quasar/zfs.nix +++ b/linux/quasar/zfs.nix @@ -3,7 +3,13 @@ lib, ... }: { - boot.loader.grub.zfsSupport = true; + boot = { + loader.grub.zfsSupport = true; + zfs = { + extraPools = ["zarchive"]; + requestEncryptionCredentials = ["zactive/main"]; + }; + }; services.zfs = { autoScrub.enable = true;