Delete old containers

This commit is contained in:
Sandro - 2022-06-15 21:55:05 +02:00
parent b78d4670b0
commit be29160c5c
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 0 additions and 129 deletions

View File

@ -1,66 +0,0 @@
{ zentralwerk, config, pkgs, lib, ... }:
{
imports = [
../../../config
../../../config/lxc-container.nix
];
c3d2.k-ot.enable = true;
environment.systemPackages = with pkgs; [
nixops
pass
gnupg
ansible
manpages
man
zsh
screen
];
networking.interfaces.eth0.ipv4.addresses = [{
address = "172.20.73.16";
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
}];
networking.defaultGateway = "172.20.73.1";
networking = {
hostName = "deployer";
# usePredictableInterfacenames = false;
# interfaces.ens18.ipv4.addresses = [{
# address = "172.20.73.7";
# prefixLength = 26;
# }];
# interfaces.ens18.ipv6.addresses = [{
# address= "2a02:8106:208:5282:8c15:86ff:fe0f:b018";
# prefixLength = 64;
# }];
# nameservers = [ "172.20.72.6" "9.9.9.9" ];
# defaultGateway = {
# address = "172.20.73.1";
# interface = "eth0@if23";
# };
# #defaultGateway6 = {
# address = "fe80::a800:42ff:fe7a:3246";
# interface = "ens18";
#};
firewall.allowedTCPPorts = [ 22 ];
};
services.openssh = {
enable = true;
};
nix = {
buildCores = 32;
maxJobs = 32;
autoOptimiseStore = true;
};
security.sudo.wheelNeedsPassword = false;
system.stateVersion = "19.09"; # Did you read the comment?
}

View File

@ -1,63 +0,0 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../config
../../../config/lxc-container.nix
];
networking = {
hostName = "registry";
# usePredictableInterfacenames = false;
interfaces.eth0.ipv4.addresses = [{
address = "172.22.99.34";
prefixLength = 24;
}];
interfaces.eth0.ipv6.addresses = [{
address = "2a00:8180:2c00:223::34";
prefixLength = 64;
}];
dhcpcd.denyInterfaces = [ "eth0" ];
defaultGateway = {
address = "172.22.99.1";
interface = "eth0";
metric = 10;
};
#defaultGateway6 = {
# address = "fe80::a800:42ff:fe7a:3246";
# interface = "ens18";
#};
};
networking.firewall.allowedTCPPorts = [ 22 80 443 5000 ];
services.dockerRegistry = {
enable = true;
storagePath = "/srv/docker-registry";
enableGarbageCollect = true;
enableDelete = true;
};
services.nginx.enable = true;
services.nginx.virtualHosts."registry.hq.c3d2.de" = {
# serverAliases = [ "registry.serv.zentralwerk.org" ];
enableACME = true;
onlySSL = true;
locations.".well-known/acme-challenge/" = {
root = "/var/lib/acme/acme-challenge/.well-known/acme-challenge/";
};
locations."/" = { proxyPass = "http://localhost:5000"; };
extraConfig = ''
client_max_body_size 4096M;
gzip off;
'';
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.03"; # Did you read the comment?
}