at 17.09-beta 696 B view raw
1<section xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 version="5.0" 5 xml:id="ad-hoc-network-config"> 6 7<title>Ad-Hoc Configuration</title> 8 9<para>You can use <option>networking.localCommands</option> to specify 10shell commands to be run at the end of 11<literal>network-setup.service</literal>. This is useful for doing 12network configuration not covered by the existing NixOS modules. For 13instance, to statically configure an IPv6 address: 14 15<programlisting> 16networking.localCommands = 17 '' 18 ip -6 addr add 2001:610:685:1::1/64 dev eth0 19 ''; 20</programlisting> 21 22</para> 23 24</section>