summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrigory Shipunov2025-01-12 21:42:36 +0000
committerGrigory Shipunov2025-01-12 22:01:04 +0000
commit3771c9295b8a0958443927f622b047254b74a1bb (patch)
treed580a89532e90ae1be8c5bdca6e149bcca503b66
parentbd44fc6fcb1fe3df7b8a8c81839e34470fed7911 (diff)
some cloud-hypervisor network fuckery, back to qemu
-rw-r--r--hosts/minime/networking/uvm.nix14
-rw-r--r--microvms/authentik/default.nix9
2 files changed, 13 insertions, 10 deletions
diff --git a/hosts/minime/networking/uvm.nix b/hosts/minime/networking/uvm.nix
index dfcb14c..d618876 100644
--- a/hosts/minime/networking/uvm.nix
+++ b/hosts/minime/networking/uvm.nix
@@ -2,15 +2,15 @@
{
# TODO: make a module
systemd.network = {
- netdevs."10-uvm-br" = {
+ netdevs."10-microvm" = {
netdevConfig = {
Kind = "bridge";
- Name = "uvm-br";
+ Name = "microvm";
};
};
- networks."10-uvm-br" = {
- matchConfig.Name = "uvm-br";
+ networks."10-microvm" = {
+ matchConfig.Name = "microvm";
networkConfig = {
DHCPServer = false;
IPv6SendRA = true;
@@ -30,9 +30,9 @@
];
};
- networks."11-uvm-br" = {
+ networks."11-microvm" = {
matchConfig.Name = "uvm-*";
- networkConfig.Bridge = "uvm-br";
+ networkConfig.Bridge = "microvm";
};
};
@@ -40,6 +40,6 @@
enable = true;
enableIPv6 = true;
externalInterface = "enp90s0";
- internalInterfaces = [ "uvm-br" ];
+ internalInterfaces = [ "microvm" ];
};
}
diff --git a/microvms/authentik/default.nix b/microvms/authentik/default.nix
index a0b3ac8..badb384 100644
--- a/microvms/authentik/default.nix
+++ b/microvms/authentik/default.nix
@@ -1,6 +1,6 @@
{ config, lib, ... }:
let
- mac = "c0:ff:ee:00:00:00";
+ mac = "02:00:00:00:00:01";
in
{
imports = [
@@ -18,7 +18,7 @@ in
};
microvm = {
- hypervisor = "cloud-hypervisor";
+ hypervisor = "qemu";
mem = 2 * 1024;
vcpu = 2;
interfaces = [
@@ -60,7 +60,10 @@ in
enable = true;
networks."11-host" = {
matchConfig.MACAddress = mac;
- networkConfig.Address = "10.99.99.10/24";
+ networkConfig = {
+ Address = "10.99.99.10/24";
+ DHCP = "no";
+ };
routes = [
{
Gateway = "10.99.99.1";