From be29160c5c4c7a5916d02dddab7fa53b5c20bd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 15 Jun 2022 21:55:05 +0200 Subject: [PATCH] Delete old containers --- hosts/containers/deployer/configuration.nix | 66 --------------------- hosts/containers/registry/configuration.nix | 63 -------------------- 2 files changed, 129 deletions(-) delete mode 100644 hosts/containers/deployer/configuration.nix delete mode 100644 hosts/containers/registry/configuration.nix diff --git a/hosts/containers/deployer/configuration.nix b/hosts/containers/deployer/configuration.nix deleted file mode 100644 index fb7a1b05..00000000 --- a/hosts/containers/deployer/configuration.nix +++ /dev/null @@ -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? -} diff --git a/hosts/containers/registry/configuration.nix b/hosts/containers/registry/configuration.nix deleted file mode 100644 index f54ec2ed..00000000 --- a/hosts/containers/registry/configuration.nix +++ /dev/null @@ -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? -}