From 8ef974669bc7a1eb74f2751260d33aed43d4e311 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 12 Jan 2021 17:03:15 +0100 Subject: Optimise startup on machines with / on NVMe --- system/prefect.nix | 1 + system/satoshipad.nix | 1 + system/settings/hardware/nvme-root.nix | 5 +++++ 3 files changed, 7 insertions(+) create mode 100644 system/settings/hardware/nvme-root.nix diff --git a/system/prefect.nix b/system/prefect.nix index 5af4cdcf..63f9ad13 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -13,6 +13,7 @@ ./settings/configuration/user.nix ./settings/hardware/audio.nix ./settings/hardware/bare-metal.nix + ./settings/hardware/nvme-root.nix ./settings/hardware/mouse.nix ./settings/hardware/grub2.nix ./settings/hardware/nvidia-gpu.nix diff --git a/system/satoshipad.nix b/system/satoshipad.nix index a4618725..4c0c1679 100644 --- a/system/satoshipad.nix +++ b/system/satoshipad.nix @@ -14,6 +14,7 @@ ./settings/configuration/british-english.nix ./settings/configuration/nix.nix ./settings/configuration/user.nix + ./settings/hardware/nvme-root.nix ./settings/hardware/audio.nix ./settings/hardware/systemd-boot.nix ./settings/hardware/keyboardio-model01.nix diff --git a/system/settings/hardware/nvme-root.nix b/system/settings/hardware/nvme-root.nix new file mode 100644 index 00000000..3ba26f50 --- /dev/null +++ b/system/settings/hardware/nvme-root.nix @@ -0,0 +1,5 @@ +{ config, pkgs, ...}: + +{ + boot.kernelParams = ["elevator=none"]; +} -- cgit 1.4.1