From b2768c334a293346d1a31d8124827457def43b9f Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Sat, 16 Nov 2024 14:55:38 +0100 Subject: [PATCH] formats boot.kernelParams for ZFS configuration to enable compressed ARC and set maximum ARC size --- config/nixos/hardware/mennos-server/zfs.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/nixos/hardware/mennos-server/zfs.nix b/config/nixos/hardware/mennos-server/zfs.nix index 096b120..005fc54 100644 --- a/config/nixos/hardware/mennos-server/zfs.nix +++ b/config/nixos/hardware/mennos-server/zfs.nix @@ -71,8 +71,10 @@ in }; # If you want to keep compression settings - boot.kernelParams = [ "zfs.zfs_compressed_arc_enabled=1" ]; - boot.kernelParams = [ "zfs.zfs_arc_max=17179869184" ]; # 16 GiB + boot.kernelParams = [ + "zfs.zfs_compressed_arc_enabled=1" # Enable compressed ARC + "zfs.zfs_arc_max=17179869184" # 16 GiB + ]; fileSystems = { # backup ZFS mount points