nixos/networkd: mark units
option as internal
#74624
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
The options at
systemd.network
(links
,netdevs
andnetworks
) aredirectly mapped to the three different unit types of
systemd-networkd(8)
.However there's also the option
systemd.network.units
which isbasically 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]
nixpkgs/nixos/modules/system/boot/networkd.nix
Lines 933 to 937 in 9db75ed
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @