you could do something like

systemd.services.set-up-disk-io-scheduler = {
  wantedBy = ["networking.service"]; # this is just an example, you need to
find some boot service which is loaded at the beginning, you probably can
also wait for device mount or other event
  script = "set you scheduler here";
}

2016-11-10 10:25 GMT+00:00 Azul <[email protected]>:

> Hi there,
>
> Is there a way to set the IO scheduler on a specific disk?
> I need to set the 'noop' scheduler on a disk I have, but can't find a way
> on nixos to do so.
>
> wonders if I may have to use a udev rule, cron job, or if there is a way
> to execute a single command at boot, bit like rc.local.
>
> thankz
> azul
>
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>


-- 
Tomasz Czyż
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to