Merge pull request #71790 from flokli/networkd-remove-99-main
nixos/network: remove 99-main.network
This commit is contained in:
commit
4c4e24e6b6
2 changed files with 16 additions and 9 deletions
|
@ -99,6 +99,22 @@
|
|||
reconfiguring <literal>hostsdir</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The <literal>99-main.network</literal> file was removed. Maching all
|
||||
network interfaces caused many breakages, see
|
||||
<link xlink:href="https://github.com/NixOS/nixpkgs/pull/18962">#18962</link>
|
||||
and <link xlink:href="https://github.com/NixOS/nixpkgs/pull/71106">#71106</link>.
|
||||
</para>
|
||||
<para>
|
||||
We already don't support the global <link linkend="opt-networking.useDHCP">networking.useDHCP</link>,
|
||||
<link linkend="opt-networking.defaultGateway">networking.defaultGateway</link> and
|
||||
<link linkend="opt-networking.defaultGateway6">networking.defaultGateway6</link> options
|
||||
if <link linkend="opt-networking.useNetworkd">networking.useNetworkd</link> is enabled,
|
||||
but direct users to configure the per-device
|
||||
<link linkend="opt-networking.interfaces">networking.interfaces.<name>.…</link> options.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -76,15 +76,6 @@ in
|
|||
};
|
||||
in mkMerge [ {
|
||||
enable = true;
|
||||
networks."99-main" = (genericNetwork mkDefault) // {
|
||||
# We keep the "broken" behaviour of applying this to all interfaces.
|
||||
# In general we want to get rid of this workaround but there hasn't
|
||||
# been any work on that.
|
||||
# See the following issues for details:
|
||||
# - https://github.com/NixOS/nixpkgs/issues/18962
|
||||
# - https://github.com/NixOS/nixpkgs/issues/61629
|
||||
matchConfig = mkDefault { Name = "*"; };
|
||||
};
|
||||
}
|
||||
(mkMerge (forEach interfaces (i: {
|
||||
netdevs = mkIf i.virtual ({
|
||||
|
|
Loading…
Reference in a new issue