Skip to content

Instantly share code, notes, and snippets.

@SCOTT-HAMILTON
Created February 25, 2021 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SCOTT-HAMILTON/b5adb727245c73a6323ed9bc7296ed4d to your computer and use it in GitHub Desktop.
Save SCOTT-HAMILTON/b5adb727245c73a6323ed9bc7296ed4d to your computer and use it in GitHub Desktop.
networking =
let
hostIp = "192.168.0.1";
in {
bridges = {
br0 = {
interfaces = [];
};
};
interfaces = {
br0 = {
ipv4.addresses = [{ address = hostIp; prefixLength = 24; }];
};
};
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment