From 9281372beb148520da883976435e90c1d5840306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 12 Oct 2019 19:38:33 +0100 Subject: [PATCH] Default to mq-deadline io scheduler --- nixos/common-services.nix | 9 ++++++++- nixos/shell-config.nix | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/common-services.nix b/nixos/common-services.nix index 9efba6f0..ba6db755 100644 --- a/nixos/common-services.nix +++ b/nixos/common-services.nix @@ -2,7 +2,14 @@ { services = { fwupd.enable = true; - tlp.enable = true; + + tlp = { + enable = true; + extraConfig = '' + DISK_IOSCHED="mq-deadline" + ''; + }; + fstrim.enable = true; clipmenu.enable = true; diff --git a/nixos/shell-config.nix b/nixos/shell-config.nix index 451d7f5d..08cabe99 100644 --- a/nixos/shell-config.nix +++ b/nixos/shell-config.nix @@ -2,5 +2,6 @@ permittedInsecurePackages = [ "webkitgtk-2.4.11" ]; + allowUnfree = true; }