[Nix-dev] NixOS: New scheme
Marc Weber
marco-oweber at gmx.de
Sun Nov 16 23:19:20 CET 2008
> At the end of the file, attributes are set like if this was your own
> computer configuration file.
>
> 2.2/ Options
>
> Options can have the following list of attribute:
>
> - default: Default value
> - example: Give an hint on the syntax accepted for this option.
> - description: Give context information about the option and its role
> in the configuration of the computer.
> - merge: Function which have two arguments (the name of the attribute,
name? Is this a full qualified one ? eg
services.network.apache.subversion.url or only "url" here ?
Why do you pass it at all? Do be able to create nice error messages such
as "Wrong config option in <name>"?
Maybe it's better to add a catch directive to the language then or
return some special attr set such as
{ error = "foo"; } so that the library can create that error message
than?
> ------
> require = [
> (import configurations/hardware/network/Intel4965AGN.nix)
> ];
> ------
That honors the idea put on list some time ago about only saying
> (import configurations/discounterPC.nix)
which can import the Intel4965AGN itself to setup the pc configuration
atutomatically, correct?
I'm checking what has changed in upstart-0.5 now
Sincerly
Marc
More information about the nix-dev
mailing list