summary refs log tree commit diff
path: root/nixos/doc/manual/configuration/ad-hoc-network-config.section.md
blob: 4478d77f361d47278bc65e2648cf23025759dbe8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Ad-Hoc Configuration {#ad-hoc-network-config}

You can use [](#opt-networking.localCommands) to
specify shell commands to be run at the end of `network-setup.service`. This
is useful for doing network configuration not covered by the existing NixOS
modules. For instance, to statically configure an IPv6 address:

```nix
networking.localCommands =
  ''
    ip -6 addr add 2001:610:685:1::1/64 dev eth0
  '';
```