nixos/network-interfaces: Add support for multiple ipv4 / ipv6 addresses#3182
nixos/network-interfaces: Add support for multiple ipv4 / ipv6 addresses#31827c6f434c merged 4 commits intoNixOS:masterfrom
Conversation
|
TODO: Fix broken nixos tests |
|
Stop script done and tested, TODO broken tests. |
|
Should be done, testing would be appreciated but this works on all of my multi-interface, multi-ip machines. |
There was a problem hiding this comment.
Shouldn't this also filter out ipv6 interfaces?
There was a problem hiding this comment.
Well, it really only make sense in the case of ipv4 as you could conceivably want a static + dhcp ipv6 address. I think we should really force the user to choose if they want dhcp or not. Not try and figure it out for them.
|
@edolstra Could you look over this before I get too entrenched in using it and need to make changes? |
7518138 to
27efdb7
Compare
|
Is it necessary to make the old way defunct? Maybe it should complain using trace, but define a single address using the new syntax? |
|
Would be really great if this PR could be applied. I'm waiting for it since wkennington opened this PR. |
|
Yes, this change looks quite useful. |
|
I could fairly trivially support the old syntax with the exception of the subnetMask line which I assume isn't very common anymore. I just wanted to force a migration to the new syntax so users were more aware of the changes. |
|
Yes compatibility please. If somebody needs multiple IPs he will find the
|
27efdb7 to
b777f1b
Compare
|
I think that should do it. |
b777f1b to
4d8390b
Compare
|
Let's hope it works with real-world old-style configurations… |
nixos/network-interfaces: Add support for multiple ipv4 / ipv6 addresses
|
There is an issue with this patch: error: attribute `address' missing, at /etc/nixos/nixpkgs/nixos/modules/tasks/network-interfaces.nix:630:32 |
|
I have reverted for now, because it seems to break even simple configurations. The feature sounds nice though. |
|
Also, please in next PR also add the following (also reverted) commit : 704e91b |
|
I suspect the issue might be an interaction with nixpkgs/nixos/modules/programs/virtualbox.nix |
….ipv6"" This reverts commit ea89106.
No description provided.