Hi!

"Nicolas Pierron"
<[EMAIL PROTECTED]> writes:

> The point is that all NixOS configuration files have an
> argument/attribute called "config".  This attribute correspond to the
> result of the computer configuration.  The fix function plus a merge
> function ("require" attribute) allow the config attribute to look into
> to the evaluated version of attributes.
>
> {config, pkgs}:
>
> {
>   services = {
>     foo = {
>       enable = mkOption { default = false; };
>     };
>
>     bar = {
>       enable = config.services.foo.enable; // not necessary false
>     };
>   };
> }

OK, I understand, thank you for your patience!

Ludo'.

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to