mimir: Remove microvm

This commit is contained in:
Erwin Boskma 2024-10-18 19:41:34 +02:00
parent b1093efb6c
commit 3281b84379
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -1,6 +1,5 @@
{ {
nixos-hardware, nixos-hardware,
microvm,
attic, attic,
... ...
}: }:
@ -12,7 +11,6 @@
nixos-hardware.nixosModules.common-cpu-amd-pstate nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-pc-ssd nixos-hardware.nixosModules.common-pc-ssd
microvm.nixosModules.host
attic.nixosModules.atticd attic.nixosModules.atticd
../../users/erwin ../../users/erwin
@ -213,6 +211,7 @@
trustedInterfaces = [ trustedInterfaces = [
"lo" "lo"
"tailscale0" "tailscale0"
"enp5s0f1"
]; ];
allowedTCPPorts = [ allowedTCPPorts = [
@ -231,7 +230,6 @@
nat = { nat = {
enable = true; enable = true;
internalInterfaces = [ "microvm" ];
externalInterface = "enp4s0"; externalInterface = "enp4s0";
}; };
@ -245,8 +243,6 @@
}; };
}; };
microvm.autostart = [ "miniflux" ];
powerManagement = { powerManagement = {
cpuFreqGovernor = "ondemand"; cpuFreqGovernor = "ondemand";
}; };
@ -286,15 +282,6 @@
}; };
}; };
netdevs = {
"10-microvm" = {
netdevConfig = {
Kind = "bridge";
Name = "microvm";
};
};
};
networks = { networks = {
"40-enp4s0" = { "40-enp4s0" = {
enable = true; enable = true;
@ -322,23 +309,8 @@
matchConfig = { matchConfig = {
Name = "enp5s0f1"; Name = "enp5s0f1";
}; };
};
"10-microvm" = { addresses = [ { Address = "10.42.0.1/24"; } ];
matchConfig = {
Name = "microvm";
};
addresses = [ { Address = "172.16.0.1/24"; } ];
};
"11-microvm" = {
matchConfig = {
Name = "vm-*";
};
networkConfig = {
Bridge = "microvm";
};
}; };
}; };
}; };