diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-10-28 22:58:37 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-10-29 11:14:08 +0530 |
commit | 220732df77e7533e77421df7c1d8195dc6d0cdae (patch) | |
tree | 0d0bf2d385876d7c7888b8e923218f0970538f3c /hosts/kay/modules/router.nix | |
parent | e3dfb27a38de7231c2fd9addc8a7b2f8c3a0409e (diff) |
kay/network: refactor
Diffstat (limited to 'hosts/kay/modules/router.nix')
-rw-r--r-- | hosts/kay/modules/router.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/kay/modules/router.nix b/hosts/kay/modules/router.nix index cf748ce..cc9aaae 100644 --- a/hosts/kay/modules/router.nix +++ b/hosts/kay/modules/router.nix @@ -1,15 +1,17 @@ { ... }: let - lanInterface = "enp4s0"; + lanInterface = "enp0s20u1"; wanInterface = "ppp0"; subnet = "10.0.0.0"; prefix = 24; host = "10.0.0.1"; leaseRangeStart = "10.0.0.100"; - leaseRangeEnd = "10.0.0.240"; + leaseRangeEnd = "10.0.0.254"; in { + imports = [ ./wireguard.nix ]; + networking = { nat = { enable = true; |