[Nix-dev] Re: [Nix-commits] SVN commit: nix - 16460 - eelco - in nixos/branches/modular-nixos/modules/services/networking: . ssh

Nicolas Pierron nicolas.b.pierron at gmail.com
Sun Jul 26 19:54:48 CEST 2009


On Sat, Jul 25, 2009 at 01:12, Eelco Dolstra<e.dolstra at tudelft.nl> wrote:
> Modified: nixos/branches/modular-nixos/modules/services/networking/ssh/sshd.nix
> ===================================================================
> --- nixos/branches/modular-nixos/modules/services/networking/ssh/sshd.nix       2009-07-24 22:19:07 UTC (rev 16459)
> +++ nixos/branches/modular-nixos/modules/services/networking/ssh/sshd.nix       2009-07-24 23:12:52 UTC (rev 16460)
> @@ -131,6 +131,10 @@
>         exec = "${openssh}/sbin/sshd -D -h /etc/ssh/ssh_host_dsa_key -f ${sshdConfig}";
>       };
>
> +    # !!! 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?

The "nice" error message is masked by the presence of the mkIf property.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
Donald Knuth - I can't go to a restaurant because I keep looking at
the fonts on the menu.



More information about the nix-dev mailing list