[Nix-dev] contributions for nixos (please check first if everyone agrees, especially gw6c users)

Mathijs Kwik mathijs at bluescreen303.nl
Tue Feb 28 00:07:10 CET 2012


Hi all,

patch 1 and 2 can be applied right away, they're safe.
patch 3, 4 and 5 might need some discussion.

I set out to replace gw6c with gogoclient because of stdenv-updates
breaking gw6c.
gw6c's module was a bit messy (strange password handling using
seccurekeys), so I simplified it a bit too.

I found that many networking services were checking if gw6c was
enabled, so they could have their upstart tasks depend on it. I wanted
to abstract this idea and allow other network-interface-providing
services to provide this as well.
So in patch 3 I introduce an empty upstart task to depend on. By
default, it triggers when "network-interfaces" triggers, but services
like openvpn, ppp, gw6c/gogoclient can add themselves, or users can
override custom settings in their config.nix.

patch 4 introduces the gogoclient module, which uses / depends on this
framework.

patch 5 updates all services that had an explicit dependency on gw6c
to use all-interfaces.

WARNING for patch 6
I fully took out gw6c, because gogoclient works fine now.
Probably we should wait a bit before removing the obsolete service and
give people the chance to change their configs.
On the other hand, when stdenv-updates merges (which is supposed to be
soon), gw6c breakage would occur anyway.

Please provide feedback on these patches or commit them to svn if they
have been agreed upon.
Thanks!

Mathijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-optionally-run-btrfs-device-scan-during-mountall.patch
Type: application/octet-stream
Size: 1500 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0006.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-fixed-mongodb-upstart-task.patch
Type: application/octet-stream
Size: 1111 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0007.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-new-event-all-interfaces-which-is-triggered-when-all.patch
Type: application/octet-stream
Size: 1851 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0008.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-gogoclient-ipv6-tunnel-client-successor-of-gw6c.patch
Type: application/octet-stream
Size: 3917 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0009.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-changed-network-services-that-explicitly-checked-gw6.patch
Type: application/octet-stream
Size: 7721 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0010.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-removed-the-obsolete-gw6c-module.patch
Type: application/octet-stream
Size: 17091 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120228/156cda39/attachment-0011.obj 


More information about the nix-dev mailing list