From 9cd270405b34c7503917f992119fb21392ac10f6 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 12 Aug 2024 13:32:17 +0900 Subject: [PATCH] organize --- .../frankfurt-linode-01/containers/derp.nix | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 nixos/hosts/frankfurt-linode-01/containers/derp.nix diff --git a/nixos/hosts/frankfurt-linode-01/containers/derp.nix b/nixos/hosts/frankfurt-linode-01/containers/derp.nix deleted file mode 100644 index c5b4aafd..00000000 --- a/nixos/hosts/frankfurt-linode-01/containers/derp.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ ... }: { - services.cron = { - enable = true; - systemCronJobs = [ - ''0 0 * * * root mkdir -p /Storage/Data/Docker/sysctl.io/letsencrypt/; rsync -avr --delete root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/'' - ]; - }; - - # Containers - virtualisation.oci-containers.containers."derp" = { - image = "docker.io/fredliang/derper"; - environment = { - DERP_ADDR = ":1443"; - DERP_CERT_DIR = "/app/certs"; - DERP_CERT_MODE = "manual"; - DERP_DOMAIN = "frankfurt.sysctl.io"; - DERP_STUN = "true"; - DERP_VERIFY_CLIENTS = "true"; - DERP_HTTP_PORT = "-1"; - }; - volumes = [ - "/var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock:ro" - "/Storage/Data/Docker/sysctl.io/letsencrypt/external/*.sysctl.io/public.crt:/app/certs/frankfurt.sysctl.io.crt:ro" - "/Storage/Data/Docker/sysctl.io/letsencrypt/external/*.sysctl.io/private.key:/app/certs/frankfurt.sysctl.io.key:ro" - ]; - ports = [ - "3478:3478/udp" - "1443:1443/tcp" - ]; - log-driver = "journald"; - extraOptions = [ "--network=host" ]; - }; -}