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 # General
gh-personal = "$GH_CONFIG_DIR=\"${config.home.homeDirectory}/.config/gh/personal\" gh"; 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"; ls = "ls --color";
ll = "ls -l --color"; ll = "ls -l --color";
win = "sudo virsh start win10"; win = "sudo virsh start win10";
+2 -10
View File
@@ -52,12 +52,9 @@
}; };
networking = { networking = {
bridges.br0 = {
interfaces = [ "enp38s0" ];
};
defaultGateway = { defaultGateway = {
address = " 10.42.1.1"; address = " 10.42.1.1";
interface = "br0"; interface = "enp38s0";
}; };
firewall = { firewall = {
enable = true; enable = true;
@@ -66,7 +63,7 @@
}; };
hostName = "isaiah"; hostName = "isaiah";
interfaces = { interfaces = {
br0 = { enp38s0 = {
ipv4.addresses = [ ipv4.addresses = [
{ {
address = "10.42.1.6"; address = "10.42.1.6";
@@ -76,11 +73,6 @@
}; };
}; };
nameservers = [ "10.42.1.5" ]; nameservers = [ "10.42.1.5" ];
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "br0";
};
useDHCP = false; useDHCP = false;
}; };
+7
View File
@@ -29,8 +29,15 @@ in
extraFlags = [ extraFlags = [
"--cluster-cidr=10.211.0.0/16" "--cluster-cidr=10.211.0.0/16"
"--service-cidr=10.221.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"; serverAddr = lib.mkIf (config.networking.hostName != "isaiah") "https://isaiah.home:6443";
}; };
users = {
groups.kubeconfig = { };
users.greg.extraGroups = [ "kubeconfig" ];
};
}; };
} }