depot/third_party/nixpkgs/nixos/doc/manual/configuration/ad-hoc-network-config.section.md
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

426 B

Ad-Hoc Configuration

You can use 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:

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