summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
Commit message (Collapse)AuthorAge
...
* | nixos/networkd: add systemd-network user to group systemd-networkWilliButz2019-11-25
| |
* | nixos/networkd: add missing `dhcpv6` and `static` options to ↵Maximilian Bosch2019-11-23
| | | | | | | | `IPv6PrefixDelegation`
* | nixos/networkd: add `Name` as valid option to `Link`Dustin Frisch2019-11-19
|/ | | | | | | | | | | | This has been there since v209 [1] ``` The interface name to use. This option has lower precedence than NamePolicy=, so for this setting to take effect, NamePolicy= must either be unset, empty, disabled, or all policies configured there must fail. Also see the example below with "Name=dmz0". Note that specifying a name that the kernel might use for another interface (for example "eth0") is dangerous because the name assignment done by udev will race with the assignment done by the kernel, and only one interface may use the name. Depending on the order of operations, either udev or the kernel will win, making the naming unpredictable. It is best to use some different prefix, for example "internal0"/"external0" or "lan0"/"lan1"/"lan3". ``` [1] https://github.com/systemd/systemd/commit/43b3a5ef61859f06cdbaf26765cab8e1adac4296
* nixos/networkd: add `ipv4-fallback` and `fallback` as valid options to ↵Maximilian Bosch2019-10-28
| | | | | | | | | | | | | | | | | | `LinkLocalAddressing` Both options were introduced in systemd v243[1]. Those options can be used to ensure that LinkLocalAddressing is only configured for a given interface if DHCPv4 fails. To quote `systemd.network(5)`: ``` If "fallback" or "ipv4-fallback" is specified, then an IPv4 link-local address is configured only when DHCPv4 fails. If "fallback", an IPv6 link-local address is always configured, and if "ipv4-fallback", the address is not configured. Note that, the fallback mechanism works only when DHCPv4 client is enabled, that is, it requires "DHCP=yes" or "DHCP=ipv4". ``` [1] https://github.com/systemd/systemd/commit/8bc17bb3f707c99b6c9ad295563c92b38141a1f4
* systemd-networkd: add testsFélix Baylac-Jacqué2019-08-21
| | | | (cherry picked from commit ec073e41a0dc8273cd81cf61fa37004310120af2)
* systemd-networkd: add support for wireguard netdev.David Guibert2019-08-21
|
* systemd-networkd: link: Name -> OriginalNameEdmund Wu2019-08-15
|
* Merge master into staging-nextFrederik Rietdijk2019-06-10
|\
| * systemd-networkd: Only generate [Match] if presentRoman Volosatovs2019-06-09
| |
* | nixos/networkd: rename GatewayOnlink to GatewayOnLinkAndreas Rammhold2019-06-03
|/ | | | | | This follows upstreams renaming of the option [1]. [1] https://github.com/systemd/systemd/commit/9cb8c5593443d24c19e40bfd4fc06d672f8c554c
* nixos/networkd: do not require gateway for routesAlexander Shpilkin2018-09-07
| | | | | A route via a tunnel interface does not require a gateway to be specified, so do not check for the Gateway= field on routes at all.
* nixos/networkd: fix handling of RequiredForOnlineAlexander Shpilkin2018-09-07
|
* nixos/networkd: support MULTICAST flag on linksAlexander Shpilkin2018-09-07
| | | | | Support Multicast= option in [Link] section of network units, introduced in systemd/systemd#9118.
* nixos/networkd: fix range assertions on 32 bit NixBen Wolsieffer2018-08-28
|
* nixos/networkd: replace range with assertRangeBen Wolsieffer2018-08-22
|
* nixos/networkd: add missing optionsJohannes Frankenau2018-08-16
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* Merge pull request #39340 from xeji/interim-fix-39069xeji2018-04-29
|\ | | | | nixos/networkd: wait for udev to settle before starting networkd
| * nixos/systemd-networkd: wait for udev to settlexeji2018-04-22
| | | | | | | | | | ... to avoid race condition between udevd renaming and networkd configuring interfaces (39069)
* | nixos/networkd: Allow RequiredForOnline field in [Link] sectionBen Gamari2018-04-27
|/ | | | This was previously missing.
* Revert "networkd: also load builtin modules"Jörg Thalheim2018-03-04
| | | | | | This reverts commit d514dc220e9fad27a46ef329360bb8db2cdf22ea. breaks unpredicable network interfaces: https://github.com/NixOS/nixpkgs/pull/29768#issuecomment-370172863
* Merge pull request #29768 from Mic92/networkdJörg Thalheim2018-03-01
|\ | | | | networkd: also load builtin modules
| * networkd: also load builtin modulesJoerg Thalheim2017-09-25
| |
* | Merge pull request #34492 from rnhmjoj/privacyJoachim F2018-02-17
|\ \ | | | | | | nixos/networking-interfaces: add preferTempAddress option
| * | nixos/networking-interfaces: add preferTempAddress optionrnhmjoj2018-02-01
| | |
* | | systemd: 234 -> 237Franz Pletz2018-02-13
|/ / | | | | | | | | Co-Authored-By: Florian Klink <flokli@flokli.de> Co-Authored-By: Andreas Rammhold <andreas@rammhold.de>
* | Revert "networkd: only wait for network to be online if configured to do so"Peter Hoeg2017-10-14
| | | | | | | | This reverts commit 8f21e089a8de9eaa2512af25191d17077eca223a.
* | networkd: only wait for network to be online if configured to do soPeter Hoeg2017-10-14
|/
* nixos/systemd-networkd: allow [Link] section in .network filesFlorian Jacob2017-07-29
|
* networkd: Allow new MulticastDNS settingFlorian Jacob2017-07-05
| | | | which gained an implementation in systemd v233
* networking.networkd: adjust autmatic mapping of bondsProfpatsch2017-02-16
| | | | | | | | Since the bonds interface changed to a lot more possible values we create a mapping of kernel bond attribute names and values to networkd attributes. Those match for the most part, but have to transformed slightly. There is also an assert that unknown options won’t slip through silently.
* systemd: 231 -> 232Robin Gloster2017-01-26
| | | | Includes adding some more upstream units and removing obsolete (-.slice) ones.
* networkd: add extraConfig to all unitsJörg Thalheim2016-12-17
| | | | | | networkd options are always correct or up to date. This option allows to by pass type checking. It is also easier to write because examples can be just copy and paste from manpages.
* networkd: allow to supply own unit filesJörg Thalheim2016-12-17
| | | | | | | | | | Networkd units can contain secrets. In future also wireguard vpn will be supported by networkd. To avoid leakage of private keys, those could be then also put outside of the /nix/store Having a writeable /etc/systemd/network also allows to quick fix network issues, when upgrading `nixos-rebuild switch` would require network on its own (due updates).
* ntp: make timesyncd the new defaultJörg Thalheim2016-12-17
| | | | | | | | - most nixos user only require time synchronisation, while ntpd implements a battery-included ntp server (1,215 LOCs of C-Code vs 64,302) - timesyncd support ntp server per interface (if configured through dhcp for instance) - timesyncd is already included in the systemd package, switching to it would save a little disk space (1,5M)
* networkd module: fix submodule options declarationEric Sagnes2016-10-03
|
* Merge pull request #18491 from groxxda/network-interfacesJoachim F2016-10-02
|\ | | | | Replace Network-interfaces.target
| * systemd-networkd.service: remove network-interfaces.target orderingAlexander Ried2016-09-13
| |
* | networkd module: optionSet -> submoduleEric Sagnes2016-09-13
|/
* treewide: deprecate ip-up.target (#18319)Alexander Ried2016-09-10
| | | | | Systemd upstream provides targets for networking. This also includes a target network-online.target. In this PR I remove / replace most occurrences since some of them were even wrong and could delay startup.
* networkd.module: remove before network-onlineAlexander Ried2016-09-05
| | | | this is already upstream default
* networkd: add DHCPServer config sectionChristian Albrecht2015-12-23
|
* networkd: add IPForward and IPMasquerade optionsChristian Albrecht2015-12-23
| | | | to Network config section
* Create systemd-{network,resolve} user/group unconditionallyEelco Dolstra2015-07-22
| | | | | | | | | | | | This shuts up this error from dbus: May 11 13:52:16 machine dbus-daemon[259]: Unknown username "systemd-network" in message bus configuration file May 11 13:52:16 machine dbus-daemon[259]: Unknown username "systemd-resolve" in message bus configuration file which happens because the D-Bus config for networkd/resolved is enabled unconditionally, and we don't have an easy way to turn it off. (cherry picked from commit f19b58fb6a5cc55af6d8d8ca7979f8e64255d2d0)
* networkd: Fix evaluation of systemd.network units.aszlig2015-04-30
| | | | | | | | | | | During the refactor of the networkd stuff in f8dbe5f, a lot of the options are now needed by systemd.nix as well as networkd.nix but weren't moved by that commit as well. For now, this fixes all networkd VM tests except for the macvlan one and thus it should fix #7505 for at least DHCP-based configuration. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* networkd: Fix disabled networkd units.aszlig2015-04-30
| | | | | | | | | | | | | | | | In f8dbe5f, the default value for networking unit "enabled" option suddenly flipped to false. I have no idea of whether this happened by accident, but I'm setting it to true again, because it essentially breaks systemd networking support and we have systemd.network.enable to have a "turn the world off" switch. And of course, because the mentioned commit obviously wasn't done with even a run of the simplest run of one of the network VM tests, we now get an evaluation error if we switch useNetworkd to true. Fixes the core issue of #7505. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Fix #7476Eelco Dolstra2015-04-20
|
* Don't include networkd units unless enabledEelco Dolstra2015-04-19
| | | | | | Otherwise, the enabled -> disabled transition won't be handled correctly (switch-to-configuration currently assumes that if a unit is running and exists, it should be restarted).
* systemd: Move networkd into separate modulesEelco Dolstra2015-04-19
The systemd module was getting rather bloated.