From 97019fee71f269fd705eb473055eb2ff79284378 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 3 Jun 2024 22:29:25 +0200 Subject: sync config some ZFS tuning and more packages for KDE --- common.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'common.nix') diff --git a/common.nix b/common.nix index 3e88570..fc0f150 100644 --- a/common.nix +++ b/common.nix @@ -29,6 +29,17 @@ in boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; boot.supportedFilesystems = [ "zfs" ]; + # don't check for split locks, for KVM and Co. + boot.kernelParams = [ "split_lock_detect=off" ]; + + # tweak ZFS + boot.extraModprobeConfig = '' + options zfs zfs_prefetch_disable=1 + options zfs zfs_arc_max=4294967296 + options zfs zfs_arc_min=134217728 + options zfs zfs_arc_meta_limit_percent=75 + ''; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; -- cgit v1.2.3