This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / ubik-host.nix
2.1 kB 68 lines
1{ config, pkgs, ... }: 2{ 3 krebs.sync-containers3.containers.ubik = { 4 sshKey = config.clan.core.vars.generators.ubik-container.files."ubik.sync.key".path; 5 startCommand = '' 6 export PATH=$PATH:${pkgs.git}/bin 7 until ${pkgs.dig.host}/bin/host github.com; do sleep 1; done 8 ${pkgs.nixos-rebuild}/bin/nixos-rebuild --refresh --flake github:lassulus/superconfig#ubik switch --no-write-lock-file 9 ''; 10 }; 11 clan.core.vars.generators.ubik-container = { 12 files."ubik.sync.key" = { }; 13 migrateFact = "ubik-container"; 14 prompts.key = { 15 description = "copy or reference the secret key from the container into here, so we can actually start/sync the container"; 16 type = "hidden"; 17 }; 18 script = '' 19 cp "$prompts"/key "$out"/ubik.sync.key 20 ''; 21 }; 22 containers.ubik.bindMounts."/var/lib" = { 23 hostPath = "/var/lib/sync-containers3/ubik/state"; 24 isReadOnly = false; 25 }; 26 containers.ubik.bindMounts."/var/lib/nextcloud/data" = { 27 hostPath = "/var/ubik"; 28 isReadOnly = false; 29 }; 30 services.nginx.virtualHosts."c.apanowicz.de" = { 31 enableACME = true; 32 acmeFallbackHost = "ubik.r"; 33 forceSSL = true; 34 locations."/" = { 35 recommendedProxySettings = true; 36 proxyWebsockets = true; 37 proxyPass = "https://ubik.r"; 38 extraConfig = '' 39 client_max_body_size 9001M; 40 # fix abort after 1GB download 41 # https://trac.nginx.org/nginx/ticket/1472 42 proxy_max_temp_file_size 0; 43 ''; 44 }; 45 }; 46 # services.nginx.virtualHosts."mail.ubikmedia.eu" = { 47 # enableACME = true; 48 # forceSSL = true; 49 # acmeFallbackHost = "ubik.r"; 50 # locations."/" = { 51 # recommendedProxySettings = true; 52 # proxyWebsockets = true; 53 # proxyPass = "https://ubik.r"; 54 # }; 55 # }; 56 57 services.nginx.virtualHosts."karlaskop.de" = { 58 serverAliases = [ "www.karlaskop.de" ]; 59 enableACME = true; 60 forceSSL = true; 61 acmeFallbackHost = "prism.r"; 62 locations."/" = { 63 recommendedProxySettings = true; 64 proxyWebsockets = true; 65 proxyPass = "https://prism.r"; 66 }; 67 }; 68}