Desktop : Move externalInterface to args.
This commit is contained in:
parent
c1805e3a7e
commit
6cff27045d
|
@ -6,12 +6,11 @@
|
||||||
, poetry2nixJobber
|
, poetry2nixJobber
|
||||||
, pkgsJobber
|
, pkgsJobber
|
||||||
, ... }: let
|
, ... }: let
|
||||||
externalInterface = "enp7s0";
|
|
||||||
|
|
||||||
args = let
|
args = let
|
||||||
storage = "/storage/hot/container";
|
storage = "/storage/hot/container";
|
||||||
domain = "voronind.com";
|
domain = "voronind.com";
|
||||||
host = "192.168.1.2";
|
host = "192.168.1.2";
|
||||||
|
externalInterface = "enp7s0";
|
||||||
media = {
|
media = {
|
||||||
anime = [ "/storage/cold_1/media/anime" "/storage/cold_2/media/anime" ];
|
anime = [ "/storage/cold_1/media/anime" "/storage/cold_2/media/anime" ];
|
||||||
book = [ "/storage/hot/media/book" ];
|
book = [ "/storage/hot/media/book" ];
|
||||||
|
@ -28,7 +27,7 @@
|
||||||
youtube = [ "/storage/cold_1/media/youtube" "/storage/cold_2/media/youtube" ];
|
youtube = [ "/storage/cold_1/media/youtube" "/storage/cold_2/media/youtube" ];
|
||||||
};
|
};
|
||||||
in {
|
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;
|
inherit poetry2nixJobber pkgsJobber;
|
||||||
|
|
||||||
container = import ../../container args;
|
container = import ../../container args;
|
||||||
|
@ -68,7 +67,7 @@ in {
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalInterfaces = [ "ve-+" ];
|
internalInterfaces = [ "ve-+" ];
|
||||||
inherit externalInterface;
|
inherit (args) externalInterface;
|
||||||
|
|
||||||
forwardPorts = with args.container.config; [
|
forwardPorts = with args.container.config; [
|
||||||
# Dns Server.
|
# Dns Server.
|
||||||
|
|
Loading…
Reference in a new issue