Merge pull request #74624 from Ma27/networkd-units-internal

nixos/networkd: mark `units` option as internal
This commit is contained in:
Maximilian Bosch 2020-02-02 07:59:57 +01:00 committed by GitHub
commit 0f10495eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -972,9 +972,10 @@ in
systemd.network.units = mkOption {
description = "Definition of networkd units.";
default = {};
internal = true;
type = with types; attrsOf (submodule (
{ name, config, ... }:
{ options = concreteUnitOptions;
{ options = mapAttrs (_: x: x // { internal = true; }) concreteUnitOptions;
config = {
unit = mkDefault (makeUnit name config);
};