My NixOS config, I don't know what I am doing, don't use this
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Switch to bore scheduler & Enable ADIOS for SSDs

+24 -1
+24 -1
modules/common.nix
··· 1 1 { inputs, pkgs, username, ... }: 2 + let 3 + kernel = pkgs.cachyosKernels.linux-cachyos-bore-lto.override { 4 + configVariant = "linux-cachyos-bore"; 5 + 6 + lto = "thin"; 7 + processorOpt = "x86_64-v3"; 8 + 9 + cpusched = "bore"; 10 + }; 11 + in 2 12 { 3 13 # ── Boot ─────────────────────────────────────────────────────────────────── 4 14 boot.loader.systemd-boot.enable = true; 5 15 boot.loader.efi.canTouchEfiVariables = true; 6 16 boot.loader.systemd-boot.configurationLimit = 10; # prevents EFI partition fill-up 7 - boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v3; 17 + boot.kernelPackages = pkgs.linuxKernel.packagesFor kernel; 18 + 19 + # ── ADIOS ───────────────────────────────────────────────────────────── 20 + # https://wiki.cachyos.org/configuration/general_system_tweaks/#how-to-enable-adios 21 + services.udev.extraRules = '' 22 + # HDD 23 + ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" 24 + 25 + # SSD 26 + ACTION=="add|change", KERNEL=="sd[a-z]*|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="adios" 27 + 28 + # NVMe SSD 29 + ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="adios" 30 + ''; 8 31 9 32 # ── Networking ───────────────────────────────────────────────────────────── 10 33 networking.networkmanager.enable = true;