New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/tinc: remove unnecessary networking.interfaces #48682
Conversation
This breaks with networking backends enabled and also creates large delays on boot when some services depends on the network target. It is also not really required because tinc does create those interfaces itself. fixes NixOS#27070
Success on aarch64-linux (full log) Attempted: tinc Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: tinc Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: tinc Partial log (click to expand)
|
backport: cde886e |
Unfortunately this PR has broken some things for me: since I used a configuration very similar to the one on the wiki via I personally prefer the I was taken by surprise for the backport, and it could have gotten bad if my server were to be rebooted, since it auto-updates, and I wouldn't be able to access it via the Tinc VPN :-/ One way to make it backwards compatible would be to add an option |
Oops, I didn't see that the backport was reverted, carry on ^^ |
At least 18.09-small has now the revert. I hope it did not affect to many setups. |
The way it works with |
This is the setup I use on 4 nodes, which works well: https://github.com/Mic92/dotfiles/blob/de5e97c52f4ce2acd387f5614342b567d9a26870/nixos/vms/modules/retiolum.nix#L66 |
@volth I also had problems when networkd was not managing tun interfaces. Correct me if I am wrong here. The difference was that I did not notice the bug adding ip addresses with network.interfaces as in my case networkd would set the link in an up state. I hope we find a solution where |
The question is should I revert the change on master as well or should I go forward to find a better solution? |
Interestingly it also caused long delays on machines with gigabit ethernet and no dependencies on dns. |
I'm confused by various things here. One is that in
the mentioned error is under Platform specific questions and specifically says "on MacOSX or *BSD". |
This breaks with both networking backends and
also creates large delays on boot when some services depends
on the network target. It is also not required
because tinc does create those interfaces itself.
fixes #27070
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)