From 6cff27045d11988e21e90aeb4c396839335e37db Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 18 Jun 2024 10:24:58 +0300 Subject: [PATCH] Desktop : Move externalInterface to args. --- host/home/Container.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/host/home/Container.nix b/host/home/Container.nix index 5739b0d..c0056df 100644 --- a/host/home/Container.nix +++ b/host/home/Container.nix @@ -6,12 +6,11 @@ , poetry2nixJobber , pkgsJobber , ... }: let - externalInterface = "enp7s0"; - args = let storage = "/storage/hot/container"; domain = "voronind.com"; host = "192.168.1.2"; + externalInterface = "enp7s0"; media = { anime = [ "/storage/cold_1/media/anime" "/storage/cold_2/media/anime" ]; book = [ "/storage/hot/media/book" ]; @@ -28,7 +27,7 @@ youtube = [ "/storage/cold_1/media/youtube" "/storage/cold_2/media/youtube" ]; }; in { - inherit storage domain host pkgs const lib config util media; + inherit storage domain host pkgs const lib config util media externalInterface; inherit poetry2nixJobber pkgsJobber; container = import ../../container args; @@ -68,7 +67,7 @@ in { networking.nat = { enable = true; internalInterfaces = [ "ve-+" ]; - inherit externalInterface; + inherit (args) externalInterface; forwardPorts = with args.container.config; [ # Dns Server.