nixpkgs/nixos/lib
Maximilian Bosch c4fd7cf16d
nixos/networkd: get rid of *Config attributes in lists
This patch is about removing `wireguardPeerConfig`,
`dhcpServerStaticLeaseConfig` - a.k.a. the
AbstractSingletonProxyFactoryBean of nixpkgs - and friends.

As a former colleague said

> worst abstraction ever

I second that. I've written enough networkd config for NixOS systems so
far to have a strong dislike. In fact, these don't even make sense:
`netdevs.wireguardPeers._.wireguardPeerConfig` will be rendered into
the key `[WireGuardPeer]` and every key from `wireguardPeerConfig` is in
there. Since it's INI, there's no place where sections on the same level
as wireguardPeerConfig fit into. Hence, get rid of it all.

For the transition, using the old way is still allowed, but gives a
warning. I think we could drop this after one release.

The tests of rosenpass and systemd-networkd-dhcpserver-static-leases
were broken on the rev before, hence they were updated, but are still
not building.
2024-05-20 17:26:42 +02:00
..
make-options-doc nixos/lib, doc: remove references to mdDoc (#300738) 2024-04-01 16:58:23 -07:00
test-driver nixos/test-driver: don't add QEMU_OPTS twice 2024-04-05 12:30:36 +02:00
testing nixos/testing: fix markdown link in enableOCR description 2024-05-14 21:22:09 -04:00
default.nix
eval-cacheable-options.nix
eval-config-minimal.nix
eval-config.nix
from-env.nix
make-btrfs-fs.nix
make-channel.nix
make-disk-image.nix
make-ext4-fs.nix
make-iso9660-image.nix
make-iso9660-image.sh
make-multi-disk-zfs-image.nix
make-single-disk-zfs-image.nix
make-squashfs.nix
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix nixos/lib/qemu-common: add riscv{32,64}-linux to qemu guest matrix 2024-04-29 14:05:39 +02:00
systemd-lib.nix nixos/networkd: get rid of *Config attributes in lists 2024-05-20 17:26:42 +02:00
systemd-network-units.nix nixos/networkd: get rid of *Config attributes in lists 2024-05-20 17:26:42 +02:00
systemd-types.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
systemd-unit-options.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00
test-script-prepend.py
testing-python.nix
utils.nix systemd: add a name option to all systemd units 2024-04-15 11:32:45 +02:00