Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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>
(cherry picked from commit 97801380b05447e59e47ba97d93f6c6cfefd56e4)

aszlig 9f765f92 613eb006

Changed files
+1 -1
nixos
modules
+1 -1
nixos/modules/tasks/network-interfaces.nix
··· 391 391 }; 392 392 393 393 networking.localCommands = mkOption { 394 - type = types.str; 394 + type = types.lines; 395 395 default = ""; 396 396 example = "text=anything; echo You can put $text here."; 397 397 description = ''