From 97019fee71f269fd705eb473055eb2ff79284378 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 3 Jun 2024 22:29:25 +0200 Subject: [PATCH] sync config some ZFS tuning and more packages for KDE --- common.nix | 11 +++++++++++ mini/hardware-configuration.nix | 3 --- neko/hardware-configuration.nix | 3 --- projects/kde/kdesrc-buildrc | 2 +- projects/kde/shell.nix | 1 + 5 files changed, 13 insertions(+), 7 deletions(-) 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; diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix index bd59f3a..8472002 100644 --- a/mini/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -10,9 +10,6 @@ boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; - # don't check for split locks, for KVM and Co. - boot.kernelParams = [ "split_lock_detect=off" ]; - # efi partition fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part1"; diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix index af44b41..65bc1de 100644 --- a/neko/hardware-configuration.nix +++ b/neko/hardware-configuration.nix @@ -10,9 +10,6 @@ boot.initrd.kernelModules = [ "i915" ]; boot.kernelModules = [ "kvm-intel" ]; - # don't check for split locks, for KVM and Co. - boot.kernelParams = [ "split_lock_detect=off" ]; - # efi partition fileSystems."/boot" = { device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part1"; diff --git a/projects/kde/kdesrc-buildrc b/projects/kde/kdesrc-buildrc index 454b4a5..307672e 100644 --- a/projects/kde/kdesrc-buildrc +++ b/projects/kde/kdesrc-buildrc @@ -31,7 +31,7 @@ global log-dir ~/projects/kde/log # use distro stuff for that - ignore-modules wayland wayland-protocols gpgme appstream packagekit-qt + ignore-modules wayland wayland-protocols gpgme appstream packagekit-qt poppler end global include ${module-definitions-dir}/kf6-qt6.ksb diff --git a/projects/kde/shell.nix b/projects/kde/shell.nix index 3a65891..93e4a31 100644 --- a/projects/kde/shell.nix +++ b/projects/kde/shell.nix @@ -49,6 +49,7 @@ export QT_QUICK_CONTROLS_STYLE_PATH=/home/cullmann/projects/kde/usr/lib/qml/QtQu hunspellDicts.en_US intltool isocodes + kdePackages.poppler lcms2 libarchive libcanberra