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:
parent
542babc3d2
commit
97801380b0
@ -391,7 +391,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.localCommands = mkOption {
|
networking.localCommands = mkOption {
|
||||||
type = types.str;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
example = "text=anything; echo You can put $text here.";
|
example = "text=anything; echo You can put $text here.";
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user