gitea: convert to microvm

This commit is contained in:
Sandro - 2022-06-20 22:10:23 +02:00
parent 4b43464103
commit 6de81bd390
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 10 additions and 11 deletions

View File

@ -375,7 +375,7 @@
gitea = nixosSystem' {
modules = [
./config/lxc-container.nix
self.nixosModules.microvm
./hosts/containers/gitea
];
};

View File

@ -1,18 +1,17 @@
{ config, pkgs, lib, zentralwerk, ... }:
{
c3d2 = {
deployment = {
server = "server10";
mounts = [ "etc" "home" "var"];
};
};
microvm.mem = 6 * 1024;
networking = {
hostName = "gitea";
useDHCP = false;
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [ {
address = config.c3d2.hosts."${config.networking.hostName}".ip4;
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
} ];
};
defaultGateway = "172.20.73.1";
nameservers = [ "172.20.73.8" "9.9.9.9" ];
firewall.allowedTCPPorts = [ 80 443 2222 ];
};