diff --git a/nixos/configurations/Tytonidae/networking.nix b/nixos/configurations/Tytonidae/networking.nix index 673c472..e8404f3 100644 --- a/nixos/configurations/Tytonidae/networking.nix +++ b/nixos/configurations/Tytonidae/networking.nix @@ -39,8 +39,11 @@ # Bond = "bond0"; # PrimarySlave = true; - DHCP = "ipv4"; + DHCP = "yes"; IPv6AcceptRA = true; + + IPMasquerade = "yes"; + IPv4Forwarding = "yes"; }; linkConfig = { RequiredForOnline = "routable"; @@ -49,6 +52,24 @@ Name = "eno2"; }; }; + "20-wlan0" = { + matchConfig = { + Name = "wlan0"; + }; + + address = ["192.168.110.1/24"]; + networkConfig = { + DHCPServer = "yes"; + IPMasquerade = "yes"; + IPv4Forwarding = "yes"; + }; + dhcpServerConfig = { + PoolOffset = 100; + PoolSize = 20; + EmitDNS = "yes"; + DNS = "8.8.8.8"; + }; + }; # "20-wlan0" = { # networkConfig = { # # Bond = "bond0"; @@ -87,8 +108,8 @@ Enabled = true; }; General = { - # EnableNetworkConfiguration = false; - EnableNetworkConfiguration = true; + EnableNetworkConfiguration = false; + # EnableNetworkConfiguration = true; }; Settings = { AutoConnect = true; diff --git a/nixos/modules/programs/dae/config.dae b/nixos/modules/programs/dae/config.dae index 6aa935c..5cbb748 100644 --- a/nixos/modules/programs/dae/config.dae +++ b/nixos/modules/programs/dae/config.dae @@ -4,8 +4,8 @@ include { } global { - lan_interface: auto - wan_interface: auto + lan_interface: wlan0,eno2 + wan_interface: eno2 log_level: trace allow_insecure: false