about summary refs log tree commit diff
path: root/machines/devhell/gunnr.nix
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2021-07-06 09:59:06 +0100
committerdevhell <devhell@mailfresser.de>2021-07-06 09:59:06 +0100
commit283748723ff96cb405e6a8dce2d688d73acb0ae4 (patch)
treea38d1e08fd9fe5498308ad3ac04e9a5771487a47 /machines/devhell/gunnr.nix
parent0601360c183a064732bcaa4d0d0a75c6a635bcfb (diff)
machines/{gunnr,eir}: Force `none` scheduler
Without this, the kernel tries to use `mq-deadline` for gunnr. The
invocation for eir was wrong anyway, so this should fix it.
Diffstat (limited to 'machines/devhell/gunnr.nix')
-rw-r--r--machines/devhell/gunnr.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/machines/devhell/gunnr.nix b/machines/devhell/gunnr.nix
index 9c482e8f..967ff403 100644
--- a/machines/devhell/gunnr.nix
+++ b/machines/devhell/gunnr.nix
@@ -21,6 +21,10 @@
     initrd = {
       availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
       kernelModules = [ "fuse" "amdgpu" ];
+      postDeviceCommands = ''
+        echo none > /sys/block/sda/queue/scheduler
+        echo none > /sys/block/sdb/queue/scheduler
+      '';
     };
 
     kernelParams = [ "pcie_aspm=off" ];