[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] Re: [Nix-commits] SVN commit: nix - 16460 - eelco - in  nixos/branches/modular-nixos/modul
From:       nicolas.b.pierron () gmail ! com (Nicolas Pierron)
Date:       2009-07-26 21:32:29
Message-ID: 787b29b90907261432k5f442fccv99bec25e0e136e7c () mail ! gmail ! com
[Download RAW message or body]

On Sun, Jul 26, 2009 at 23:24, Eelco Dolstra<e.dolstra at tudelft.nl> wrote:
> Eelco Dolstra wrote:
>
>> Nicolas Pierron wrote:
>>
>>>> + ? ?# !!! This barfs because of the mkIf ("value is a list while an
>>>> + ? ?#attribute set was expected") :-(
>>>> + ? ?#networking.firewall.allowedTCPPorts = [22];
>>>> +
>>>> ? };
>>>>
>>>> ?}
>>> This is working if you don't forget to import "firewall.nix". ?Didn't
>>> I mention that maintaining such things by hand sucks?
>>
>> I do import it in my own configuration.nix.
>
> But I forgot that the generation of the configuration.nix manpage uses an empty
> configuration that didn't include firewall.nix. ?Doh.
>
> However I don't agree that this has anything to do with maintaining the default
> import list by hand. ?I didn't include firewall.nix yet because it wasn't ready,
> and no automatic tool can determine whether such a module should be included.

This is the reason why I've suggested to put this information inside
modules.  This can be retrieved by a tool which generates the proper
lists.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
A borderless war is along the way! Do you copy?


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic