nixpkgs/nixos/modules/tasks
Majiir Paktu 0ba49949b0 nixos/network-interfaces-systemd: don't set network-level domains
systemd.network(5) describes Domains= as a "list of domains which should
be resolved using the DNS servers on this link." This setting is read by
systemd-resolved.service, and it's used to configure both search domains
and DNS query routing.

Adding the search domains from `networking.search` is unnecessary
because these are already configured globally in `resolved.conf` through
the default value of `services.resolved.domains`.

Adding the system's `networking.domain` to each network is unexpected
and probably incorrect. A user may not expect that the domain is in
effect automatically added to the search domains even if not specified
in `networking.search`.

Both of these network-level assignments are problematic in cases where
the NixOS networkd module is not managing every interface on the system.
In that scenario, the managed interfaces will have Domains= set while
the others do not. That will cause systemd-resolved to route DNS queries
for the search domains and the system domain to only those managed
interfaces.
2023-10-02 17:36:08 -04:00
..
filesystems nixos/zfs: disable redundant scheduler 2023-09-13 21:36:36 +02:00
auto-upgrade.nix nixos/*: automatically convert option docs 2022-08-19 22:40:58 +02:00
bcache.nix nixos/bcache: add a boot.bcache.enable kill switch 2023-09-10 14:26:53 +01: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/stage-1-systemd: makeFstabEntries: drop rootPrefix parameter 2023-09-27 18:31:56 -04:00
lvm.nix Merge pull request #240600 from lilyinstarlight/fix/luksroot-lvm-default-off 2023-07-05 12:42:45 -04:00
network-interfaces-scripted.nix network-interfaces-scripted: fix interface cleanup 2023-05-27 15:09:22 +02:00
network-interfaces-systemd.nix nixos/network-interfaces-systemd: don't set network-level domains 2023-10-02 17:36:08 -04:00
network-interfaces.nix nixos/security/wrappers: generate a separate and more complete apparmor policy fragment for each wrapper 2023-08-27 14:10:07 +02:00
powertop.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
scsi-link-power-management.nix nixos/*: automatically convert option docs to MD 2022-08-03 22:46:41 +02:00
snapraid.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
stratis.nix nixos/stratis: init 2022-09-12 15:19:36 +08:00
swraid.nix nixos/swraid: only warn if swraid was explicitly enabled (#255426) 2023-09-16 12:19:19 +02:00
trackpoint.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
tty-backgrounds-combine.sh