mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
test: vaultwarden microVM
This commit is contained in:
parent
304d353a1f
commit
c28d5398c4
1 changed files with 19 additions and 4 deletions
|
|
@ -13,9 +13,11 @@ in
|
|||
microvm.host.enable = true;
|
||||
|
||||
# # systemd-networkd for bridge management
|
||||
# # NOTE: Not needed for macvtap - only enable if using TAP interfaces
|
||||
# # TAP requires a bridge on the host, macvtap connects directly to physical interface
|
||||
# systemd.network.enable = true;
|
||||
|
||||
# # Bridge configuration for microVMs
|
||||
# # Bridge configuration for microVMs (only needed for TAP interfaces)
|
||||
# systemd.network.netdevs."10-br-vms" = {
|
||||
# netdevConfig = {
|
||||
# Name = "br-vms";
|
||||
|
|
@ -47,11 +49,24 @@ in
|
|||
|
||||
networking = {
|
||||
hostName = ceres.name;
|
||||
# NetworkManager disabled - using systemd-networkd for bridge management
|
||||
# Having both enabled causes multiple DHCP leases and IP conflicts
|
||||
# NetworkManager disabled - using declarative networking
|
||||
networkmanager.enable = false;
|
||||
nftables.enable = true;
|
||||
useDHCP = lib.mkDefault false; # systemd-networkd handles DHCP via bridge
|
||||
useDHCP = false;
|
||||
|
||||
# Declarative interface configuration for the host
|
||||
interfaces.enp10s0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.50.240";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
defaultGateway = "192.168.50.1";
|
||||
nameservers = [ "192.168.50.1" ];
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue