summaryrefslogtreecommitdiff
path: root/hosts/flex-wg-router/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/flex-wg-router/configuration.nix')
-rw-r--r--hosts/flex-wg-router/configuration.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/hosts/flex-wg-router/configuration.nix b/hosts/flex-wg-router/configuration.nix
index dd0ca95..a0777f0 100644
--- a/hosts/flex-wg-router/configuration.nix
+++ b/hosts/flex-wg-router/configuration.nix
@@ -13,11 +13,11 @@ in {
enable = true;
home.users.timmy.enable = true;
};
- router.enable = true;
btrfs.enable = true;
};
};
+ # Network config
networking = {
# Label lan and wan interfaces
_interfaceLabels = {
@@ -52,6 +52,13 @@ in {
# Router config
services._router = {
+ routing = {
+ enable = true;
+ interfaces = {
+ lan = [ "lan0" ];
+ wan = "wan0";
+ };
+ };
dnsDhcpConfig = {
localDomain = "wg-router.pls.lan";
dhcp = {