mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: jellyfin microVM
This commit is contained in:
parent
b553e92ad1
commit
e25c1a2e06
13 changed files with 271 additions and 358 deletions
|
|
@ -9,13 +9,10 @@ let
|
|||
wireguardService = instances.wireGuard;
|
||||
in
|
||||
{
|
||||
# Enable microVM host
|
||||
microvm.host.enable = true;
|
||||
|
||||
# systemd-networkd for bridge management (required for TAP interfaces)
|
||||
systemd.network.enable = true;
|
||||
|
||||
# Bridge configuration for microVMs
|
||||
systemd.network.netdevs."10-br-vms" = {
|
||||
netdevConfig = {
|
||||
Name = "br-vms";
|
||||
|
|
@ -23,7 +20,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Attach physical interface and tap interfaces to bridge
|
||||
systemd.network.networks."20-lan" = {
|
||||
matchConfig.Name = [
|
||||
"enp10s0"
|
||||
|
|
@ -34,7 +30,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Bridge gets the host IP
|
||||
systemd.network.networks."30-br-vms" = {
|
||||
matchConfig.Name = "br-vms";
|
||||
networkConfig = {
|
||||
|
|
@ -47,12 +42,9 @@ in
|
|||
|
||||
networking = {
|
||||
hostName = ceres.name;
|
||||
# NetworkManager disabled - using declarative networking
|
||||
networkmanager.enable = false;
|
||||
nftables.enable = true;
|
||||
useDHCP = false;
|
||||
# Network configuration handled by systemd-networkd bridge
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue