From 8037ef8adb0cd6785c80ed247d5525e846e46e6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 29 Jul 2023 15:54:56 +0100 Subject: [PATCH] switch to /data on zfs --- nixos/boxes/bolty/bolty-boot.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/nixos/boxes/bolty/bolty-boot.nix b/nixos/boxes/bolty/bolty-boot.nix index bc680611..b2f9a6ff 100644 --- a/nixos/boxes/bolty/bolty-boot.nix +++ b/nixos/boxes/bolty/bolty-boot.nix @@ -14,22 +14,12 @@ services.btrfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true; + boot.kernelParams = [ "zfs.zfs_arc_max=8589934592" ]; - fileSystems."/data" = { - device = "/dev/disk/by-uuid/78e8e5b5-9068-4381-8e85-b4297607f9ea"; - fsType = "btrfs"; - options = [ - "autodefrag" - "space_cache" - "inode_cache" - "noatime" - "nodiratime" - "compress=zstd" - ]; - }; + boot.zfs.extraPools = [ "data" ]; - fileSystems."/" = { + fileSystems."/" = { device = "/dev/disk/by-uuid/28afab71-ff3d-4f1a-b7e4-2129572706dd"; fsType = "btrfs"; };