| Commit message (Collapse) | Author | Age |
| |
|
|\
| |
| | |
nixos/networkd: add `dhcpServerStaticLeaseConfig` option
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
Move systemd-lib.nix and systemd-unit-options.nix into utils
|
| |/ |
|
|/ |
|
|
|
|
| |
Since systemd v248 networkd supports BatmanAdvanced.
This adds the according config options to the networkd-module
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
nixos/networkd: added IAID, DUIDType and DUIDRawData to DHCPv6 section
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
| |
`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.
|
|\
| |
| | |
nixos/networkd: add missing IPv6 options
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
Adds `systemd.network.networks.*.ipv6AcceptRAConfig` for networkd's
[IPv6AcceptRA] section.
|
| |
| |
| |
| |
| |
| | |
networkd gained a new section [DHCPv6PrefixDelegation] which
controls delegated prefixes assigned by DHCPv6 client. Added in systemd
246.
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix #91761
|
|
|
|
| |
Simplifies greatly the interpretation of commit differences.
|
| |
|
|
|
|
|
|
| |
This is passed as integer, not string.
Closes https://github.com/NixOS/nixpkgs/issues/91172.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
With sytemd v244 we will have support for this option.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
You can now specify option for the `[DHCPv6]` section with
`systemd.network.<name>.dhcpV6Config.…`. Previously you could only use
the combined legacy DHCP configuration.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
...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.
|
|
|
|
|
|
|
| |
systemd-networkd
This mirrors the behaviour of systemd - It's udev that parses `.link`
files, not `systemd-networkd`.
|
| |
|
| |
|
|\
| |
| | |
nixos/networkd: mark `units` option as internal
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 more valid values for RequiredForOnline
|
| | |
| | |
| | |
| | |
| | | |
`RequiredForOnline` allows for a boolean value or operational state.
This adds the values for all valid the operational states.
|
| |/
|/|
| |
| | |
This is in systemd since v240.
|