1# Ad-Hoc Configuration {#ad-hoc-network-config} 2 3You can use [](#opt-networking.localCommands) to 4specify shell commands to be run at the end of `network-setup.service`. This 5is useful for doing network configuration not covered by the existing NixOS 6modules. For instance, to statically configure an IPv6 address: 7 8```nix 9{ 10 networking.localCommands = 11 '' 12 ip -6 addr add 2001:610:685:1::1/64 dev eth0 13 ''; 14} 15```