From 2a8c29d36f6a7645ff279d8ef07ddb1931d2e1eb Mon Sep 17 00:00:00 2001 From: kurogeek Date: Mon, 10 Aug 2026 17:12:48 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:clan.nix --- clan.nix | 7 ++++--- modules/clan/gw-router/default.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/clan.nix b/clan.nix index 6a9e6fe..962dd99 100644 --- a/clan.nix +++ b/clan.nix @@ -2,6 +2,7 @@ inputs, self, libNet, + lib, ... }: let @@ -70,7 +71,7 @@ in genVlan = id: length: rec { inherit id; prefixLength = length; - subnet = libNet.net.cidr.make length "10.0.${id}.0"; + subnet = libNet.net.cidr.make length "10.0.${lib.toString id}.0"; address = libNet.net.cidr.host 1 subnet; dhcp.pool.from = libNet.net.cidr.host 100 subnet; dhcp.pool.to = libNet.net.cidr.host 200 subnet; @@ -83,7 +84,7 @@ in vlanId = null; }; vlans = { - mgmt = genVlan 10 24 // { + mgmt = lib.recursiveUpdate (genVlan 10 24) { dhcp.fixedIPs.storinator01 = { hwAddress = "7c:c2:55:e0:d6:40"; ipAddress = "10.1.10.53"; @@ -97,7 +98,7 @@ in unit2 = genVlan 120 24; unit3 = genVlan 130 24; unit4 = genVlan 140 24; - unit5 = genVlan 150 24 // { + unit5 = lib.recursiveUpdate (genVlan 150 24) { dhcp.fixedIPs.newt = { hwAddress = "7c:d3:0a:21:58:0b"; ipAddress = "10.1.150.22"; diff --git a/modules/clan/gw-router/default.nix b/modules/clan/gw-router/default.nix index 2d26402..906d516 100644 --- a/modules/clan/gw-router/default.nix +++ b/modules/clan/gw-router/default.nix @@ -159,7 +159,7 @@ ... }: let - vlanIf = name: "vlan=${name}"; + vlanIf = name: "vlan-${name}"; in {