Commit Graph

301 Commits

Author SHA1 Message Date
Raito Bezarius
04f7553ac2 nixos/systemd/networkd: add Varlink APIs
This adds:

- /run/systemd/resolve.hook/io.systemd.Network (DNS hook)
- /run/systemd/report/io.systemd.Network (metrics)
- /run/systemd/netif/io.systemd.Network (management)

Change-Id: I3d63b0723ae5f8f9496418d8f5d857809302155e
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2026-06-25 09:50:38 +02:00
Florian Klink
af59f21843 nixos/systemd-networkd: add new options for v260 (#513521) 2026-04-26 12:26:37 +00:00
Florian Klink
fbebe4cdf5 nixos/systemd-networkd: Allow three value variant in ipv6AcceptRAConfig.RouteMetric option (#507540) 2026-04-26 11:55:37 +00:00
x7c2d
12f553550f nixos/systemd-networkd: add new options for v260
systemd 260 introduces some new linkConfig options to configure ethernet
devices and a new [MobileNetwork] section (and options) to configure
cellular network connections using a new integration with ModemManager.

- https://github.com/systemd/systemd/releases/tag/v260
2026-04-26 00:06:57 +01:00
Fabian Möller
18d69f6e9d nixos/systemd-networkd: Allow three value variant in ipv6AcceptRAConfig.RouteMetric option 2026-04-07 10:44:36 +02:00
nixpkgs-ci[bot]
9b17ea8a06 Merge staging-next into staging 2026-04-04 12:11:47 +00:00
Franz Pletz
ac5df5a861 nixos/systemd-networkd: Add missing network options to type checker (#506245) 2026-04-04 07:57:39 +00:00
nixpkgs-ci[bot]
fd1bf26f2d Merge staging-next into staging 2026-04-04 06:23:34 +00:00
Plopmenz
4ae5cb7634 nixos/systemd-networkd: Add missing network options to type checker
Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
2026-04-04 07:28:57 +02:00
Franz Pletz
f7317ff87d nixos/networkd: fix typo (#506421) 2026-04-04 04:41:02 +00:00
2kybe3
277647238f nixos/networkd: fix typo 2026-04-04 00:26:29 +02:00
nixpkgs-ci[bot]
ef0a9bf980 Merge staging-next into staging 2026-04-03 18:13:40 +00:00
Linus Karl
26d2b87994 nixos/systemd-networkd: align options with upstream 2026-04-02 21:28:01 +02:00
nixpkgs-ci[bot]
f943263653 Merge staging-next into staging 2026-04-01 06:36:38 +00:00
Florian Klink
aad5e4ad77 systemd-networkd: add missing linkConfig options to type checker (#497731) 2026-04-01 00:32:15 +00:00
Philip Taron
29f3ed0c0e systemd: 259.5 -> 260.1 (#501049) 2026-03-28 15:57:55 +00:00
r-vdp
8de047d3fa nixos/networkd: add systemd-networkd-varlink-metrics socket
Exposes io.systemd.Network metrics at
/run/systemd/report/io.systemd.Network
2026-03-25 11:39:23 +01:00
Walter McKelvie
db7de8d884 systemd-networkd: add missing linkConfig options to type checker 2026-03-24 17:34:37 -04:00
nyanloutre
a0478e9e44 nixos/systemd-networkd: Add missing options to VLAN 2026-03-24 14:23:19 +00:00
Svenum
40b42e9f70 nixos/network-interfaces: Add iplvan support 2026-02-27 09:17:46 +01:00
Steven Allen
3e126bfbb8 nixos/systemd-networkd: Add missing UseSIP option to DHCPv6 2026-01-15 06:56:57 -08:00
Steven Allen
05c7d124f3 nixos/systemd-networkd: Add missing UseRetransmissionTime option 2026-01-14 13:12:50 -08:00
Steven Allen
d6a9c47e0f nixos/systemd-networkd: Add missing UseReachableTime option 2026-01-14 13:11:58 -08:00
Steven Allen
29b777151e nixos/systemd-networkd: Add missing UseHopLimit option 2026-01-14 13:10:32 -08:00
Steven Allen
59d0fa5528 nixos/systemd-networkd: Add missing UseDNR option 2026-01-14 13:08:27 -08:00
Steven Allen
4fb5d816d1 nixos/systemd-networkd: Add missing UseRedirect option 2026-01-14 13:05:17 -08:00
Steven Allen
09ca9cdb0c nixos/systemd-networkd: Add missing UseCaptivePortal option 2026-01-14 13:05:00 -08:00
Sandro
8219a18608 nixos/networkd: fix eval after #469143 2026-01-04 23:15:30 +01:00
Alexandru Tocar
806f8a090c nixos/networkd: allow "runtime" as a valid value for dhcpServerConfig.PersistLeases 2025-12-09 02:49:08 +01:00
Albert Larsan
ec2ce20ac4 nixos/systemd-networkd: Add missing option in netdev Tunnel
It exists since systemd 254 (https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#IgnoreDontFragment=)
2025-10-15 12:04:51 +02:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
budimanjojo
59f0f1e7ea nixos/networkd: allow setting ManageForeignNextHops option
Signed-off-by: budimanjojo <budimanjojo@gmail.com>
2025-08-21 02:22:06 +07:00
nikstur
bb954cddf5 nixos/network-interfaces: let networkd handle privacy extensions
This removes bash from the mandatory system closure.
2025-08-09 00:10:13 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Philip Taron
1755d9399b nixos/networkd: update valid KeepConfiguration values (#395621) 2025-06-05 16:17:48 -07:00
Charlie Moog
5781ef6de9 nixos/systemd/networkd: allow passing flow control fields to link 2025-05-03 18:18:30 +00:00
Jared Baur
d8f9c63512 nixos/networkd: update valid KeepConfiguration values
These changed with the release of systemd v257 from "dhcp*" to
"dynamic*".
2025-04-02 16:27:33 -07:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Fernando Rodrigues
cf4c8e97ad nixos/networkd: add new options introduced in systemd 257
The Wireguard public key can now be read from a file.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-02-17 21:51:40 +00:00
Andreas Fuchs
0c5719fe0e Don't stop systemd-{networkd,resolved,udevd} on config switch
These daemons should not be stopped, as they're foundational to a
proper functioning of the system. When switching configurations, they
only need a restart instead of that stop/start cycle.
2025-01-08 13:05:27 -05:00
Will Fancher
15be453e9a switch-to-configuration: Better handling of socket-activated units (#359724) 2025-01-04 11:51:21 -05:00
Christian Kögler
1c9a0c2c1b nixos/networkd: add RequestAddress to network sectionDHCPv4 (#366864) 2024-12-31 11:22:15 +01:00
Franz Pletz
18a943798a nixos/networkd: add NetLabel & NFTSet options 2024-12-23 12:29:58 +01:00
FlafyDev
40086fb0ea nixos/networkd: add RequestAddress to network sectionDHCPv4 2024-12-20 18:22:47 +02:00
Logan Attwood
6c324710e3 nixos/networkd: expose RapidCommit in DHCPv4 network unit section
Disabling this option is required to obtain a DHCPv4 lease from
some old/misconfigured DHCP servers. This was already exposed for
DHCPv6.
2024-12-18 01:03:54 -04:00
Franz Pletz
f9f7d7b58c nixos/networkd: use upstream wait-online@ unit (#360319) 2024-12-03 21:40:30 +01:00
Franz Pletz
357fff0f44 nixos/networkd: allow configuring RTTSec for CAKE qdisc (#285737) 2024-11-30 07:25:54 +01:00
Franz Pletz
0d48c50f4b nixos/networkd: use upstream wait-online@ unit
Use the upstream unit for systemd-networkd-wait-online@.service and fix
the spelling.
2024-11-30 07:15:46 +01:00
Franz Pletz
18cf9ad14b nixos/networkd: fix eval
Broken by #330662.
2024-11-30 07:08:18 +01:00
Franz Pletz
e383460f09 nixos/networkd: add dhcpServerConfig.PersistLeases option (#353189) 2024-11-30 06:46:51 +01:00