mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
a099ca4505
[Squashed commits to make git blame etc. more likely to work. -ED]
25 lines
696 B
XML
25 lines
696 B
XML
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
version="5.0"
|
|
xml:id="ad-hoc-network-config">
|
|
|
|
<title>Ad-Hoc Configuration</title>
|
|
|
|
<para>You can use <option>networking.localCommands</option> to specify
|
|
shell commands to be run at the end of
|
|
<literal>network-setup.service</literal>. This is useful for doing
|
|
network configuration not covered by the existing NixOS modules. For
|
|
instance, to statically configure an IPv6 address:
|
|
|
|
<programlisting>
|
|
networking.localCommands =
|
|
''
|
|
ip -6 addr add 2001:610:685:1::1/64 dev eth0
|
|
'';
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</section>
|