diff --git a/hosts/fw.cloonar.com/modules/gitea.nix b/hosts/fw.cloonar.com/modules/gitea.nix index ec9ef7f..07c20a8 100644 --- a/hosts/fw.cloonar.com/modules/gitea.nix +++ b/hosts/fw.cloonar.com/modules/gitea.nix @@ -101,15 +101,12 @@ in autoStart = true; ephemeral = true; macvlans = [ "vserver" ]; - # privateNetwork = true; - # hostBridge = "server"; - # localAddress = "10.42.97.2"; - # bindMounts = { - # "/var/lib/gitea" = { - # hostPath = "/var/lib/gitea/"; - # isReadOnly = false; - # }; - # }; + bindMounts = { + "/var/lib/gitea" = { + hostPath = "/var/lib/gitea/"; + isReadOnly = false; + }; + }; # bindMounts = { # "/var/lib/acme/gitea/" = { # hostPath = "${security.acme.certs.${domain}.directory}"; @@ -118,18 +115,14 @@ in # }; config = { lib, config, pkgs, ... }: { networking = { - # hostName = "gitea"; - # interfaces.mv-vserver.useDHCP = true; + hostName = "gitea"; interfaces.mv-vserver = { useDHCP = true; - # ipv4.addresses = [ { address = "10.42.97.2"; prefixLength = 24; } ]; }; - # firewall = { - # enable = true; - # allowedTCPPorts = [ 22 80 443 ]; - # }; - # Use systemd-resolved inside the container - # useHostResolvConf = false; + firewall = { + enable = true; + allowedTCPPorts = [ 22 80 443 ]; + }; }; # services.resolved.enable = true;