[Nix-dev] Re: What about introducing security.packages?

Evgeny Egorochkin phreedom.stdin at gmail.com
Tue Aug 30 10:41:09 CEST 2011


On Saturday 20 August 2011 19:10:59 Marc Weber wrote:
> Hi Yury,
> 
> > > What exactly are you trying to do?
> > 
> > My goal is to avoid the situation when someone adds a package to
> > dbus.packages but not to udev.packages.
> 
> Probably you're right that in most cases the defaults shipping with
> packages get the job done (much more likely than omitting those rules).
> 
> first)
>   What about
> 
>   pkg = mkDerivation {
> 
>     meta.provides = { # using attrs if there is ever need for some
>                       # configuration you can add it easily. Also
>                       # patching attrs is easier than adding/dropping
>                       # items from lists?
>       udevrules = true;
>       dbussetup = true;
>     }
>   }
> 
>   Then overwriting those setting is even easier.
> 
>   Then we could introduce udev.packagesAutoAdd = true which picks
>   packages from environment.systemPackages automatically based on the
>   provides attr setting and it would be "opt-in" which some people will
>   prefer.

Looks great to me. Alows both auto mode like regular distros do, and an easy 
to manage whitelist/blacklist for the control freaks among us.

-- 
Evgeny



More information about the nix-dev mailing list