[Nix-dev] Re: Suggestion: Home configuration.

Ludovic Courtès ludo at gnu.org
Wed Jun 25 09:25:25 CEST 2008


Hello,

"Nicolas Pierron"
<nicolas.b.pierron at gmail.com> writes:

> Recently I have installed wmii which provide a script in its /etc but
> this script is suppose to be run-able and was not able to start due to
> a missing runtime-denpendency.  First I thought that the /etc files
> were not installed and that the program relies entirely on the user
> configuration.

And?

> However, it could be interesting that each package that your are
> installing provides scripts to set your environment variables instead
> of creating a script which tries to do everything.

Which environment variables and which scripts are you referring to?
(Sorry if I'm missing the obvious but I really don't get it.)

> Apache is configured inside NixOs by using nix expressions.  My
> question is, is it possible to move this configuration to NixPkgs and
> override the apache default configuration with the same script? Or is
> it really necessary to separate the configuration of the package from
> the package ?  My point of view is that a configuration is only a
> "configuration package" which depends on the tools that are used
> inside the configuration and which override the default configuration
> of used packages.

But the Apache service in NixOS uses an Upstart job, a group/user ID,
etc., all of which are resources under the admin's control.  Conversely,
"regular" packages (such as the Apache package proper in Nixpkgs) do not
use any resource not available to non-root users.

Thanks,
Ludovic.




More information about the nix-dev mailing list