[Nix-dev] how to set the prefered IO scheduler for a disk on nixos ?
Peter Simons
simons at nospf.cryp.to
Thu Nov 10 18:26:43 CET 2016
Hi Azul,
I use the following configuration.nix snippet:
systemd.services.set-io-scheduler = {
description = "Configure I/O Scheduler";
wantedBy = [ "multi-user.target" ];
unitConfig.RequiresMountsFor = "/sys/block/sda/queue";
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.stdenv.shell} -c 'echo deadline >/sys/block/sda/queue/scheduler'";
};
};
Best regards,
Peter
More information about the nix-dev
mailing list