Fix Isaiah to actually work

This commit is contained in:
Greg Hellings
2025-05-19 21:47:35 -05:00
parent 6a297a4fc4
commit b70c7874cc
3 changed files with 12 additions and 10 deletions
+3
View File
@@ -63,6 +63,9 @@
# General
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh";
k = "kubectl";
kn = "kubectl get nodes -o wide";
kp = "kubectl get pods -o wide";
ls = "ls --color";
ll = "ls -l --color";
win = "sudo virsh start win10";
+2 -10
View File
@@ -52,12 +52,9 @@
};
networking = {
bridges.br0 = {
interfaces = [ "enp38s0" ];
};
defaultGateway = {
address = " 10.42.1.1";
interface = "br0";
interface = "enp38s0";
};
firewall = {
enable = true;
@@ -66,7 +63,7 @@
};
hostName = "isaiah";
interfaces = {
br0 = {
enp38s0 = {
ipv4.addresses = [
{
address = "10.42.1.6";
@@ -76,11 +73,6 @@
};
};
nameservers = [ "10.42.1.5" ];
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "br0";
};
useDHCP = false;
};
+7
View File
@@ -29,8 +29,15 @@ in
extraFlags = [
"--cluster-cidr=10.211.0.0/16"
"--service-cidr=10.221.0.0/16"
"--write-kubeconfig-mode 0640"
"--write-kubeconfig-group kubeconfig"
];
serverAddr = lib.mkIf (config.networking.hostName != "isaiah") "https://isaiah.home:6443";
};
users = {
groups.kubeconfig = { };
users.greg.extraGroups = [ "kubeconfig" ];
};
};
}