mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
Merge pull request #74624 from Ma27/networkd-units-internal
nixos/networkd: mark `units` option as internal
This commit is contained in:
commit
0f10495eb9
@ -972,9 +972,10 @@ in
|
|||||||
systemd.network.units = mkOption {
|
systemd.network.units = mkOption {
|
||||||
description = "Definition of networkd units.";
|
description = "Definition of networkd units.";
|
||||||
default = {};
|
default = {};
|
||||||
|
internal = true;
|
||||||
type = with types; attrsOf (submodule (
|
type = with types; attrsOf (submodule (
|
||||||
{ name, config, ... }:
|
{ name, config, ... }:
|
||||||
{ options = concreteUnitOptions;
|
{ options = mapAttrs (_: x: x // { internal = true; }) concreteUnitOptions;
|
||||||
config = {
|
config = {
|
||||||
unit = mkDefault (makeUnit name config);
|
unit = mkDefault (makeUnit name config);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user