git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #71790 from flokli/networkd-remove-99-main

nixos/network: remove 99-main.network

commit4c4e24e6b6df82a1238dfd9696dd1058d8d77506 authorFlorian Klink <flokli@flokli.de> dateWed 23 Oct 2019, 15:13 (7 years ago) parent2084e15c3098d1
2 files changed+16−9
nixos/doc/manual/release-notes/rl-2003.xml+16 nixos/modules/tasks/network-interfaces-systemd.nix−9
nixos/doc/manual/release-notes/rl-2003.xml+16
@@ -99,6 +99,22 @@
9999 reconfiguring <literal>hostsdir</literal>.
100100 </para>
101101 </listitem>
102+ <listitem>
103+ <para>
104+ The <literal>99-main.network</literal> file was removed. Maching all
105+ network interfaces caused many breakages, see
106+ <link xlink:href="https://github.com/NixOS/nixpkgs/pull/18962">#18962</link>
107+ and <link xlink:href="https://github.com/NixOS/nixpkgs/pull/71106">#71106</link>.
108+ </para>
109+ <para>
110+ We already don't support the global <link linkend="opt-networking.useDHCP">networking.useDHCP</link>,
111+ <link linkend="opt-networking.defaultGateway">networking.defaultGateway</link> and
112+ <link linkend="opt-networking.defaultGateway6">networking.defaultGateway6</link> options
113+ if <link linkend="opt-networking.useNetworkd">networking.useNetworkd</link> is enabled,
114+ but direct users to configure the per-device
115+ <link linkend="opt-networking.interfaces">networking.interfaces.&lt;name&gt;.…</link> options.
116+ </para>
117+ </listitem>
102118 </itemizedlist>
103119 </section>
104120
nixos/modules/tasks/network-interfaces-systemd.nix−9
@@ -76,15 +76,6 @@ in
7676 };
7777 in mkMerge [ {
7878 enable = true;
79− networks."99-main" = (genericNetwork mkDefault) // {
80− # We keep the "broken" behaviour of applying this to all interfaces.
81− # In general we want to get rid of this workaround but there hasn't
82− # been any work on that.
83− # See the following issues for details:
84− # - https://github.com/NixOS/nixpkgs/issues/18962
85− # - https://github.com/NixOS/nixpkgs/issues/61629
86− matchConfig = mkDefault { Name = "*"; };
87− };
8879 }
8980 (mkMerge (forEach interfaces (i: {
9081 netdevs = mkIf i.virtual ({