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