networkd: add extraConfig to all units
networkd options are always correct or up to date. This option allows to by pass type checking. It is also easier to write because examples can be just copy and paste from manpages.
This commit is contained in:
parent
d49e0d5fa5
commit
579051fe66
|
@ -165,6 +165,11 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
|
description = "Extra configuration append to unit";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
linkOptions = commonNetworkOptions // {
|
linkOptions = commonNetworkOptions // {
|
||||||
|
@ -515,6 +520,8 @@ let
|
||||||
''
|
''
|
||||||
[Link]
|
[Link]
|
||||||
${attrsToSection def.linkConfig}
|
${attrsToSection def.linkConfig}
|
||||||
|
|
||||||
|
${def.extraConfig}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -565,6 +572,7 @@ let
|
||||||
${attrsToSection def.bondConfig}
|
${attrsToSection def.bondConfig}
|
||||||
|
|
||||||
''}
|
''}
|
||||||
|
${def.extraConfig}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -603,6 +611,7 @@ let
|
||||||
${attrsToSection x.routeConfig}
|
${attrsToSection x.routeConfig}
|
||||||
|
|
||||||
'')}
|
'')}
|
||||||
|
${def.extraConfig}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue