1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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:
Jörg Thalheim 2016-12-17 12:03:40 +01:00
parent d49e0d5fa5
commit 579051fe66

View file

@ -165,6 +165,11 @@ let
'';
};
extraConfig = mkOption {
default = "";
type = types.lines;
description = "Extra configuration append to unit";
};
};
linkOptions = commonNetworkOptions // {
@ -515,6 +520,8 @@ let
''
[Link]
${attrsToSection def.linkConfig}
${def.extraConfig}
'';
};
@ -565,6 +572,7 @@ let
${attrsToSection def.bondConfig}
''}
${def.extraConfig}
'';
};
@ -603,6 +611,7 @@ let
${attrsToSection x.routeConfig}
'')}
${def.extraConfig}
'';
};