From 709c84881377955ea3706e32ae1083e078977a0f Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Fri, 1 Dec 2023 20:11:02 +0100 Subject: [PATCH] try podman again --- hosts/fw.cloonar.com/configuration.nix | 2 +- hosts/fw.cloonar.com/modules/podman.nix | 28 +++++++++++++++++++++---- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/hosts/fw.cloonar.com/configuration.nix b/hosts/fw.cloonar.com/configuration.nix index 969b1fb..08a9136 100644 --- a/hosts/fw.cloonar.com/configuration.nix +++ b/hosts/fw.cloonar.com/configuration.nix @@ -27,7 +27,7 @@ # ./modules/drone/server.nix # ./modules/drone/runner.nix ./modules/fwmetrics.nix - ./modules/hypervisor + ./modules/podman.nix # home assistant # ./modules/home-assistant.nix diff --git a/hosts/fw.cloonar.com/modules/podman.nix b/hosts/fw.cloonar.com/modules/podman.nix index 4584849..f6d8976 100644 --- a/hosts/fw.cloonar.com/modules/podman.nix +++ b/hosts/fw.cloonar.com/modules/podman.nix @@ -9,13 +9,33 @@ in { # defaultNetwork.settings.dns_enabled = true; defaultNetwork.settings = { driver = "macvlan"; - network_interface = "lan"; + network_interface = "server"; ipv6_enabled = false; internal = false; dns_enabled = false; - ipam_options = { - driver = "dhcp"; - }; + subnets = [{ gateway = "10.42.97.1"; subnet = "10.42.97.192/27"; }]; + aux_address = "10.42.97.223"; + }; + }; + }; + + networking = { + macvlans = { + "server-shim" = { + interface = "server"; + mode = "bridge"; + }; + }; + interfaces = { + "server-shim" = { + ipv4.addresses = [{ + address = "10.42.97.223"; + prefixLength = 24; + }]; + ipv4.routes = [{ + address = "10.42.97.192"; + prefixLength = 27; + }]; }; }; };