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 = {
after = [ "conntrack" ];
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"
},
"locked": {
"lastModified": 1734643696,
"narHash": "sha256-W5JSWhhThI9erzhZmpHy1gZGwSxEGPKYmOUBEXH/WGA=",
"owner": "oddlama",
"repo": "nixos-extra-modules",
"rev": "6a4736e0773a1852b0b6c5f71cbe96dd39c3caf1",
"type": "github"
"lastModified": 1735860340,
"narHash": "sha256-8bgRXOHpLmgUHmg6CKFnm6LJzIdInDzE6wO+OotedCI=",
"ref": "refs/heads/main",
"rev": "2502ff50abc8e29606824ac4e67d4a5279b1cb0d",
"revCount": 41,
"type": "git",
"url": "file:///home/patrick/repos/nix/nixos-extra-modules"
},
"original": {
"owner": "oddlama",

View file

@ -75,7 +75,7 @@ in
backend = "microvm";
microvm = {
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;
};
extraSpecialArgs = {