From 856c6b25b9319d4562bd50c36377f4a3ef168283 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 7 Sep 2023 02:06:36 +0200 Subject: Add container ip address --- .../containers/pluralcontactbotpoc/container.nix | 47 ++++++++++------------ 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/container.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/container.nix index 82203cb..5fb7827 100755 --- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/container.nix +++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/container.nix @@ -1,31 +1,26 @@ { pkgs, lib, conduit, ... }: { -# imports = -# [ -# ./root.nix -# ]; - - privateNetwork = true; - autoStart = true; - specialArgs = { - inherit conduit; - }; - - - config = { lib, pkgs, conduit, ... }: { - imports = [ ./root.nix ]; - environment.etc."resolv.conf".text = '' - nameserver 8.8.8.8 - nameserver 8.4.4.8 - nameserver 1.1.1.1 - nameserver 1.0.0.1 - ''; - networking.firewall = { - enable = true; - allowedTCPPorts = [ 80 443 ]; - }; + privateNetwork = true; + autoStart = true; + specialArgs = { + inherit conduit; + }; + config = { lib, pkgs, conduit, ... }: { + imports = [ ./root.nix ]; + environment.etc."resolv.conf".text = '' + nameserver 8.8.8.8 + nameserver 8.4.4.8 + nameserver 1.1.1.1 + nameserver 1.0.0.1 + ''; + networking.firewall = { + enable = true; + allowedTCPPorts = [ 80 443 ]; }; - - + }; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.11"; + hostAddress6 = "fc00::1"; + localAddress6 = "fc00::2"; } \ No newline at end of file -- cgit 1.4.1