testing kubernetes network
This commit is contained in:
parent
b106e7b9e2
commit
0388993f40
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -21,6 +21,7 @@
|
||||
"Compat",
|
||||
"concatLists",
|
||||
"Cryptodisk",
|
||||
"devicemap",
|
||||
"dialout",
|
||||
"direnv",
|
||||
"disren",
|
||||
@ -98,6 +99,7 @@
|
||||
"zerotier",
|
||||
"zerotierone",
|
||||
"zhaofengli",
|
||||
"zoxide"
|
||||
"zoxide",
|
||||
"ztkubnet"
|
||||
]
|
||||
}
|
||||
|
26
modules/kub_net.nix
Normal file
26
modules/kub_net.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
system.activationScripts.setZerotierName = lib.stringAfter [ "var" ] ''
|
||||
echo "ebe7fbd44565ba9d=ztkubnet" > /var/lib/zerotier-one/devicemap
|
||||
'';
|
||||
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [ "ebe7fbd44565ba9d" ];
|
||||
};
|
||||
|
||||
networking = {
|
||||
vlans = {
|
||||
vlan100 = {
|
||||
id = 100;
|
||||
interface = "ztkubnet";
|
||||
};
|
||||
};
|
||||
interfaces.vlan100.ipv4.addresses = [
|
||||
{
|
||||
address = "10.10.10.3";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
@ -60,5 +60,6 @@
|
||||
// other
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"redhat.telemetry.enabled": true,
|
||||
"gitlens.plusFeatures.enabled": false
|
||||
"gitlens.plusFeatures.enabled": false,
|
||||
"github.copilot.editor.enableAutoCompletions": true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user