summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
Commit message (Collapse)AuthorAge
* nixos/networking: fix assertion on IPMasqueradedatafoo2022-01-20
|
* Merge pull request #145183 from veehaitch/networkd-DHCPServerStaticLeaseAndreas Rammhold2021-12-09
|\ | | | | nixos/networkd: add `dhcpServerStaticLeaseConfig` option
| * nixos/networkd: add `dhcpServerStaticLeaseConfig` optionVincent Haupert2021-11-30
| | | | | | | | | | | | | | | | | | Add `systemd.network.networks.*.dhcpServerStaticLeaseConfig` to allow for configuring static DHCP leases through the `[DHCPServerStaticLease]` section. See systemd.network(5) of systemd 249 for details. Also adds the NixOS test `systemd-networkd-dhcpserver-static-lease` to test the assignment of static leases.
* | Merge pull request #146815 from ElvishJerricco/systemd-utils-expressionsajs1242021-12-08
|\ \ | | | | | | Move systemd-lib.nix and systemd-unit-options.nix into utils
| * | Move systemd-lib.nix and systemd-unit-options.nix into utilsWill Fancher2021-11-20
| |/
* / nixos/networkd: add RoutingPolicyRule Type option (#146168)Yuka2021-12-07
|/
* nixos/networkd: add BatmanAdvanced options (#145963)n0emis2021-11-16
| | | | Since systemd v248 networkd supports BatmanAdvanced. This adds the according config options to the networkd-module
* nixos/networking: add foo-over-udp endpoint supportpennae2021-10-16
| | | | | | allows configuration of foo-over-udp decapsulation endpoints. sadly networkd seems to lack the features necessary to support local and peer address configuration, so those are only supported when using scripted configuration.
* Merge pull request #139754 from eyJhb/networkd-iaidAndreas Rammhold2021-10-05
|\ | | | | nixos/networkd: added IAID, DUIDType and DUIDRawData to DHCPv6 section
| * nixos/networkd: added IAID, DUIDType and DUIDRawData to DHCPv6 sectioneyjhb2021-09-28
| |
* | nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|/
* nixos/networkd: add ActivationPolicy optionLeo Maroni2021-09-25
|
* nixos/networkd: add missing [DHCPServer] optionsVincent Haupert2021-05-17
| | | | | | `systemd.network.networks.*.dhcpServerConfig` did not accept all of the options which are valid for networkd's [DHCPServer] section. See systemd.network(5) of systemd 247 for details.
* Merge pull request #111342 from veehaitch/systemd-networkd-optionsFlorian Klink2021-02-27
|\ | | | | nixos/networkd: add missing IPv6 options
| * nixos/networkd: rename ipv6PrefixDelegationConfig option to ipv6SendRAConfigVincent Haupert2021-01-30
| | | | | | | | | | | | | | | | networkd's [IPv6PrefixDelegation] section and IPv6PrefixDelegation= options have been renamed as [IPv6SendRA] and IPv6SendRA= in systemd 247. Throws if the deprecated option ipv6PrefixDelegationConfig is used.
| * nixos/networkd: add ipv6AcceptRAConfig optionVincent Haupert2021-01-30
| | | | | | | | | | Adds `systemd.network.networks.*.ipv6AcceptRAConfig` for networkd's [IPv6AcceptRA] section.
| * nixos/networkd: add dhcpV6PrefixDelegationConfig optionVincent Haupert2021-01-30
| | | | | | | | | | | | networkd gained a new section [DHCPv6PrefixDelegation] which controls delegated prefixes assigned by DHCPv6 client. Added in systemd 246.
| * nixos/networkd: add missing dhcpV6Config optionsVincent Haupert2021-01-30
| |
* | nixos/{networkd,dhcpcd}: remove udev-settle hackrnhmjoj2021-02-18
|/ | | | | | | | | | systemd-udev-settle is a terrible hack[1] and should never[2] ever[3] used, seriously it's very bad. It was used as a stop-gap solution for issue #39069, but thanks to PR #79532 it can be removed now. [1]: https://github.com/systemd/systemd/issues/7293#issuecomment-592941764 [2]: https://github.com/NixOS/nixpkgs/issues/73095 [3]: https://github.com/NixOS/nixpkgs/issues/107341
* nixos/networkd: allow RouteMetric= in [DHCPv6] sectionFlorian Klink2020-10-29
|
* nixos/networkd: use assertRange with 64bits integersdatafoo2020-07-13
|
* nixos/networkd: delete unnecessary new lines in config filesdatafoo2020-07-13
|
* nixos/networkd: reoder code to match networkd documentationdatafoo2020-07-13
|
* nixos/networkd: update options for systemd 245datafoo2020-07-13
| | | | Fix #91761
* nixos/networkd: reformat code with a single option per linedatafoo2020-07-13
| | | | Simplifies greatly the interpretation of commit differences.
* nixos/networkd: correct DHCPv6 UseDNS fieldEdmund Wu2020-07-10
|
* nixos/networkd: fix systemd.network.netdevs.<name>.vlanConfig.Id exampleFlorian Klink2020-07-08
| | | | | | This is passed as integer, not string. Closes https://github.com/NixOS/nixpkgs/issues/91172.
* nixos/networkd: Make activatible through dbus and netlinkArian van Putten2020-06-13
| | | | | | | | | With this systemd buffers netlink messages in early boot from the kernel itself; and passes them on to networkd for processing once it's started. Makes sure no routing messages are missed. Also makes an alias so that dbus can activate this unit. Upstream has this too.
* nixos/networkd: support PrefixDelegationHint in DHCPv6 sectionAndreas Rammhold2020-05-01
| | | | With sytemd v244 we will have support for this option.
* nixos/networkd: add ipv6PrefixAndreas Rammhold2020-05-01
|
* nixos/networkd: add ipv6PrefixDelegationConfig to networkdAndreas Rammhold2020-05-01
|
* nixos/networkd: rename the networkd dhcpConfig option to dhcpV4ConfigAndreas Rammhold2020-05-01
| | | | | | | | | | This follows upstreams change in documentation. While the `[DHCP]` section might still work it is undocumented and we should probably not be using it anymore. Users can just upgrade to the new option without much hassle. I had to create a bit of custom module deprecation code since the usual approach doesn't support wildcards in the path.
* nixos/networkd: introduce the DHCPv6 network section eqivalentAndreas Rammhold2020-05-01
| | | | | | You can now specify option for the `[DHCPv6]` section with `systemd.network.<name>.dhcpV6Config.…`. Previously you could only use the combined legacy DHCP configuration.
* nixos/networkd: add MaxAttempts and SendRelease to the DHCP optionsAndreas Rammhold2020-05-01
|
* nixos/networkd: remove CriticalConnection= fields in favor of KeepConnectionAndreas Rammhold2020-05-01
| | | | | | | | | Systemd upstream has deprecated CriticalConnection with v244 in favor of KeepConnection as that seems to be more flexible: The CriticalConnection= setting in .network files is now deprecated, and replaced by a new KeepConfiguration= setting which allows more detailed configuration of the IP configuration to keep in place.
* nixos/networkd: add RoutesToDNS to DHCP sectionAndreas Rammhold2020-04-30
|
* nixos/networkd: Fix restartTriggersArian van Putten2020-04-23
| | | | | | | | | | | | 1d61efb7f177f7b70c467ab4940fde0a3481d4dc accidentially changed the restartTriggers of systemd-networkd.service` to point to the attribute name (in this case, a location relative to `/etc`), instead of the location of the network-related unit files in the nix store. This caused systemd-networkd to not get restarted on activation of new networking config, if the file name hasn't changed. Fix this, by pointing this back to the location in the nix store.
* nixos/networkd: respect systemd.network.links also with disabled ↵Florian Klink2020-03-19
| | | | | | | | | | | systemd-networkd This mirrors the behaviour of systemd - It's udev that parses `.link` files, not `systemd-networkd`. This was originally applied in 36ef112a477034fc6d1d9170bf1bcda0140a8d1d, but was reverted due to 1115959a8d4d73ad73341563dc8bbf52230a281e causing evaluation errors on hydra.
* Revert Merge #82310: nixos/systemd: apply .linkVladimír Čunát2020-03-13
| | | | | | | | | | | | ...even when networkd is disabled This reverts commit ce78f3ac701017008aa7f1db387b871b7ae65e01, reversing changes made to dc34da0755b3c36469965659c0ee4a1337e81c05. I'm sorry; Hydra has been unable to evaluate, always returning > error: unexpected EOF reading a line and I've been unable to reproduce the problem locally. Bisecting pointed to this merge, but I still can't see what exactly was wrong.
* nixos/networkd: respect systemd.network.links also with disabled ↵Florian Klink2020-03-11
| | | | | | | systemd-networkd This mirrors the behaviour of systemd - It's udev that parses `.link` files, not `systemd-networkd`.
* nixos/networkd: test routingPolicyRules with a nixos vm testFélix Baylac-Jacqué2020-03-02
|
* nixos/networkd: Add the RoutingPolicyRule-related optionsFélix Baylac-Jacqué2020-03-01
|
* Merge pull request #74624 from Ma27/networkd-units-internalMaximilian Bosch2020-02-02
|\ | | | | nixos/networkd: mark `units` option as internal
| * nixos/networkd: mark `units` option as internalMaximilian Bosch2019-11-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The options at `systemd.network` (`links`, `netdevs` and `networks`) are directly mapped to the three different unit types of `systemd-networkd(8)`. However there's also the option `systemd.network.units` which is basically used as a container for generated unit-configs that are linked to `/etc/systemd/networkd`[1]. This should not be exposed to the user as it's unclear whether or not it should be used directly which can be pretty confusing which is why I decided to declare this option as internal (including all sub-options as `internal` doesn't seem to be propagated to submodules). [1] https://github.com/NixOS/nixpkgs/blob/9db75ed88fd87e17ec448ad7a43b62acb4842854/nixos/modules/system/boot/networkd.nix#L933-L937
* | nixos/networkd: add `vrfConfig` option to netdevsMaximilian Bosch2020-01-25
| |
* | systemd-networkd: add configuration for XFRM interfacesFrancesco Zanini2020-01-14
| |
* | treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
| |
* | Merge pull request #72888 from fooker/pr-3Maximilian Bosch2019-12-06
|\ \ | | | | | | nixos/networkd: Add more valid values for RequiredForOnline
| * | nixos/networkd: Add more valid values for RequiredForOnlineDustin Frisch2019-11-06
| | | | | | | | | | | | | | | `RequiredForOnline` allows for a boolean value or operational state. This adds the values for all valid the operational states.
* | | nixos/networkd: add missing "Advertise" optionFlorian Klink2019-12-06
| |/ |/| | | | | This is in systemd since v240.