Tinc: Difference between revisions
imported>Joepie91 Fix formatting for tinc-up/tinc-down example |
imported>Chuangzhu Update expression to configure interface address |
||
Line 68: | Line 68: | ||
<syntaxHighlight lang=nix># for heinz | <syntaxHighlight lang=nix># for heinz | ||
networking.interfaces."tinc.private" = [ { address = 10.1.1.25; } ]; | networking.interfaces."tinc.private".ipv4.addresses = [ { address = 10.1.1.25; prefixLength = 24; } ]; | ||
</syntaxHighlight> | </syntaxHighlight> | ||