diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-02-02 07:59:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 07:59:57 +0100 |
commit | 0f10495eb9ffc26dda9e63e2f636415bd3e2b915 (patch) | |
tree | ef1cff2678d1a7372315bfdb2893c328dfee3475 /nixos/modules/system | |
parent | e3a9318b6fdb2b022c0bda66d399e1e481b24b5c (diff) | |
parent | 60f2c59471b29dc45803a02071a965cdea06a5b1 (diff) |
Merge pull request #74624 from Ma27/networkd-units-internal
nixos/networkd: mark `units` option as internal
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index a684238a2ada2..a77dbc609f462 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -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); }; |