change to server bridge

This commit is contained in:
2023-12-03 19:46:35 +01:00
parent 0bae524940
commit 5ace56169a
2 changed files with 21 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ let
ip = "10.42.97.3";
in
{
users.users.gitea = {
isSystemUser = true;
uid = 990;
@@ -98,7 +99,9 @@ in
containers.gitea = {
autoStart = true;
macvlans = [ "lan" ];
privateNetwork = true;
hostBridge = "brserver";
localAddress = "10.42.97.2/24";
bindMounts = {
"/var/lib/gitea" = {
hostPath = "/var/lib/gitea/";
@@ -156,7 +159,7 @@ in
allowedTCPPorts = [ 22 80 443 ];
};
# Use systemd-resolved inside the container
useHostResolvConf = lib.mkForce false;
useHostResolvConf = false;
};
services.resolved.enable = true;