[Nix-dev] Re: udev-153

Lluís Batlle i Rossell viriketo at gmail.com
Fri Apr 23 11:09:31 CEST 2010


On Fri, Apr 23, 2010 at 01:04:02PM +0400, Yury G. Kudryashov wrote:
> Eelco Dolstra wrote:
> 
> > Hi,
> > 
> >> I propose to use /var/run/firmware:/root/test-firmware path, and symlink
> >> /var/run/firmware to /nix/store/hash-firmware. /nix/store/hash-firmware
> >> will contain symlinks to all files in hardware.firmware directory. This
> >> will not allow us to modify the set of firmware files symlinked to
> >> /var/run/firmware after the system is built, but for emergency case we'll
> >> have impure /root/test-firmware path.
> > 
> > Sounds good, but to improve the atomicity of switching to a new
> > configuration, you could use /var/run/current-system/firmware instead of
> > /var/run/firmware (and then create a "firmware" symlink in the "system"
> > derivation).
> Actually, I've commited /etc/firmware yesterday. Of course, /etc/firmware 
> will be symlinked to /etc/static/firmware.

/etc/static/ is a special place for etc files almost directly set in the nixos
expression tree. I don't think you want to go through /etc/static.

In any case, I prefer the /var/run/current-system/firmware path.



More information about the nix-dev mailing list