nixpkgs/nixos/modules/tasks
Pierre Bourdon 4ae5da5394
nixos/network-interfaces-systemd: do not ignore /0 gateway routes
While it might seem odd, 0.0.0.0/0 or ::/0 gateways are valid and
commonly used on point-to-point links (e.g. a wireguard tunnel) to
indicate that all traffic needs to be sent to a given interface.

systemd-networkd actually documents this as a valid configuration in its
man pages [1].

Tested to do the right thing in one of my NixOS containers using
a Wireguard tunnel as its default route.

[1] https://www.freedesktop.org/software/systemd/man/systemd.network.html#DefaultRouteOnDevice=
2022-08-19 02:25:41 +02:00
..
filesystems Merge pull request #185474 from pennae/option-docs-md 2022-08-12 23:23:26 +02:00
auto-upgrade.nix nixos/*: automatically convert option docs 2022-08-06 20:39:12 +02:00
bcache.nix nixos/filesystems: Make most simple filesystems compatible with systemd 2022-04-24 16:32:34 +02:00
cpu-freq.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
encrypted-devices.nix nixos/tasks: invariant option docs MD conversions 2022-07-24 13:01:47 +02:00
filesystems.nix nixos/filesystems: skip fsck for more filesystems 2022-08-06 15:21:57 +02:00
lvm.nix (k)vdo: 8.1.1.360 -> 8.2.0.2 2022-07-20 15:00:53 +02:00
network-interfaces-scripted.nix nixos/network-interfaces-scripted: don't bindTo absent network-setup.service 2022-06-26 11:03:57 +03:00
network-interfaces-systemd.nix nixos/network-interfaces-systemd: do not ignore /0 gateway routes 2022-08-19 02:25:41 +02:00
network-interfaces.nix nixos/*: automatically convert option docs 2022-08-06 20:39:12 +02:00
powertop.nix
scsi-link-power-management.nix nixos/*: automatically convert option docs to MD 2022-08-03 22:46:41 +02:00
snapraid.nix nixos/tasks: invariant option docs MD conversions 2022-07-24 13:01:47 +02:00
swraid.nix nixos/tasks: invariant option docs MD conversions 2022-07-24 13:01:47 +02:00
trackpoint.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
tty-backgrounds-combine.sh