[Nix-dev] Directly configuring sysfs or /sys (not sysctl)

Roger Qiu roger.qiu at polycademy.com
Sat May 23 19:25:25 CEST 2015


Hi,

I was wondering if there was a particular Nix/NixOS configuration 
primitive that allowed direct & permanent editing of arbitrary sysfs 
`/sys` parameters?

Currently it seems that it's possible by creating custom systemd 
services (or maybe a udev rule) that run at boot which set the settings, 
or you could use `|/etc/sysfs.conf|.` or `/etc/sysfs.d/` (but I'm not 
sure if these are enabled in NixOS).

Unlike sysctl settings which are clearly explained in the documentation, 
it's not clear where the canonical place to set `/sys` settings should 
be such as CPU frequency.. etc.

Thanks,
Roger

-- 
Founder of Matrix AI
http://matrix.ai/
+61420925975

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150524/883ed694/attachment.html 


More information about the nix-dev mailing list