at 18.09-beta 729 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 <title>Ad-Hoc Configuration</title> 7 8 <para> 9 You can use <xref linkend="opt-networking.localCommands"/> to specify shell 10 commands to be run at the end of <literal>network-setup.service</literal>. 11 This is useful for doing network configuration not covered by the existing 12 NixOS modules. For instance, to statically configure an IPv6 address: 13<programlisting> 14<xref linkend="opt-networking.localCommands"/> = 15 '' 16 ip -6 addr add 2001:610:685:1::1/64 dev eth0 17 ''; 18</programlisting> 19 </para> 20</section>