summaryrefslogtreecommitdiff
path: root/hosts/flex-wg-router/configuration.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-18 22:52:17 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-18 22:52:17 -0500
commit44653c6a5794801abb6a6fc0151b04c24e053b09 (patch)
tree406c14e15efb14c313b178820ec66c465357041b /hosts/flex-wg-router/configuration.nix
parent0e2dff02520f25057444cdac87755a9ea8e50518 (diff)
downloadnixos-44653c6a5794801abb6a6fc0151b04c24e053b09.tar.xz
nixos-44653c6a5794801abb6a6fc0151b04c24e053b09.zip
update flex-wg-router to 26.05HEADmaster
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 = {