forked from c3d2/nix-config
gitea: convert to microvm
This commit is contained in:
parent
4b43464103
commit
6de81bd390
|
@ -375,7 +375,7 @@
|
|||
|
||||
gitea = nixosSystem' {
|
||||
modules = [
|
||||
./config/lxc-container.nix
|
||||
self.nixosModules.microvm
|
||||
./hosts/containers/gitea
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue