nixos/networking: Use type lines for localCommands

Using types.str doesn't work if you want to mkBefore/mkAfter across
different module definitions, because it only allows for one definition
for the same priority.

This is especially useful if you deploy Hetzner machines via NixOps,
because the physical specification already defines localCommands.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig
2016-09-20 13:29:40 +02:00
parent 542babc3d2
commit 97801380b0

View File

@@ -391,7 +391,7 @@ in
};
networking.localCommands = mkOption {
type = types.str;
type = types.lines;
default = "";
example = "text=anything; echo You can put $text here.";
description = ''