diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix index 768c75de496fecad7af7fcca4b585c954e1ca049..c6f1dd894bee87ecc66e7ee7f7d263527ef3c6ee 100644 --- a/machines/dragonwell/caddy.nix +++ b/machines/dragonwell/caddy.nix @@ -1,6 +1,4 @@ -{pkgs, ...}: let - modules = import ./go.nix; -in { +{pkgs, ...}: { services.caddy = { enable = true; virtualHosts = { @@ -37,7 +35,6 @@ }; "go.jolheiser.com" = { extraConfig = '' header Content-Type text/html - ${modules} respond /* ` diff --git a/machines/dragonwell/go.nix b/machines/dragonwell/go.nix deleted file mode 100644 index 6976212002f4fab8012968f67bca4ebe43f4eb8b..0000000000000000000000000000000000000000 --- a/machines/dragonwell/go.nix +++ /dev/null @@ -1,21 +0,0 @@ -let - modules = [ - { - name = "hcaptcha"; - repo = "gitea.com/jolheiser/hcaptcha"; - } - { - name = "pwn"; - repo = "gitea.com/jolheiser/pwn"; - } - ]; -in - builtins.concatStringsSep "\n" (builtins.map (module: '' - respond /${module.name}* ` - - - - Redirecting to https://pkg.go.dev/go.jolheiser.com/${module.name} - ` - '') - modules)