From 54ceb36ed9b81ac2adf9362f5687e6a19f8edb3e Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 28 Oct 2020 16:52:29 +0100 Subject: [PATCH] Set zfs ARC size always to 512MB --- configuration.nix | 2 +- modules/software.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 21fcd92..a29ec71 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,7 +4,7 @@ # Kernel configuration boot = { kernelPackages = pkgs.linuxPackages_zen; - kernelParams = [ "zfs.zfs_arc_max=536870912" ]; + kernelParams = [ "zfs.zfs_arc_min=536870912 zfs.zfs_arc_max=536870912" ]; kernelModules = [ "i915" "acpi_call" "kvm-intel" ]; extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; supportedFilesystems = [ "zfs" ]; diff --git a/modules/software.nix b/modules/software.nix index 9b33f16..66b64b2 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -70,6 +70,8 @@ zip unzip unar + # Overlays + cachix # Programming tools ## Shell shellcheck @@ -79,8 +81,6 @@ ## Python nodePackages.pyright black - # Overlays - cachix ]; # Fonts declaration