[Nix-dev] policy based profiles

Eelco Dolstra eelco at cs.uu.nl
Mon Jan 23 15:32:05 CET 2006


Hi Armijn,

> after reading another part of Eelco's thesis about the user environments
> I was thinking if it would be possible to have some sort of generic way
> to define policies. Right now it's pretty much unmanaged, at least, it's
> not easy for me to make for example a collection of udev rules. I need
> custom scripts for that, and I just want to be able to do something like
>
> nix-env -i sane --policy=linux-udev
>
> where it would add sane to an environment and recreate /etc/udev for me.

An easy way would be to have nix-env execute some optional script in the
component when it is added.  E.g., $out/nix-support/activation-script or
something.  Likewise for when the component is removed from the user
environment.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list