Skip to content

Commit

Permalink
srv-oracle: add br0
Browse files Browse the repository at this point in the history
  • Loading branch information
Svenum committed Feb 13, 2025
1 parent f2a325c commit 481235f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions systems/x86_64-linux/srv-oracle/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{ pkgs, lib, config, modulesPath, ... }:

let
ip = "172.20.0.11";
in
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
Expand Down Expand Up @@ -36,4 +39,21 @@
network.enable = true;
virtualisation.docker.enable = true;
};

networking = {
bridges.br0.interfaces = [
"ens3"
];
interfaces = {
"br0" = {
ipv4.addresses = [{
address = ip;
prefixLength = 24;
}];
useDHCP = false;
};
"ens3".useDHCP = true;
};
defaultGateway = "172.20.0.1";
#nameservers = [ "172.16.0.3" "172.16.0.4" ];
}

0 comments on commit 481235f

Please sign in to comment.