feat: unify interface naming

This commit is contained in:
Patrick 2025-01-03 00:31:36 +01:00
parent d2702099b0
commit 9b2e40d47b
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 9 additions and 8 deletions

View file

@ -17,7 +17,7 @@
networking.nftables.chains.forward.from-netbird = { networking.nftables.chains.forward.from-netbird = {
after = [ "conntrack" ]; after = [ "conntrack" ];
rules = [ rules = [
"iifname nb-main oifname mv-lan accept" "iifname nb-main oifname { lan-home, lan-services } accept"
]; ];
}; };

View file

@ -1753,12 +1753,13 @@
"pre-commit-hooks": "pre-commit-hooks_5" "pre-commit-hooks": "pre-commit-hooks_5"
}, },
"locked": { "locked": {
"lastModified": 1734643696, "lastModified": 1735860340,
"narHash": "sha256-W5JSWhhThI9erzhZmpHy1gZGwSxEGPKYmOUBEXH/WGA=", "narHash": "sha256-8bgRXOHpLmgUHmg6CKFnm6LJzIdInDzE6wO+OotedCI=",
"owner": "oddlama", "ref": "refs/heads/main",
"repo": "nixos-extra-modules", "rev": "2502ff50abc8e29606824ac4e67d4a5279b1cb0d",
"rev": "6a4736e0773a1852b0b6c5f71cbe96dd39c3caf1", "revCount": 41,
"type": "github" "type": "git",
"url": "file:///home/patrick/repos/nix/nixos-extra-modules"
}, },
"original": { "original": {
"owner": "oddlama", "owner": "oddlama",

View file

@ -75,7 +75,7 @@ in
backend = "microvm"; backend = "microvm";
microvm = { microvm = {
system = "x86_64-linux"; system = "x86_64-linux";
interfaces = listToAttrs (flip map vlans (x: (nameValuePair "lan-${x}" { }))); interfaces = listToAttrs (flip map vlans (x: (nameValuePair "mv-${x}" { hostLink = "lan-${x}"; })));
baseMac = config.secrets.secrets.local.networking.interfaces.lan01.mac; baseMac = config.secrets.secrets.local.networking.interfaces.lan01.mac;
}; };
extraSpecialArgs = { extraSpecialArgs = {