diff --git a/systems/x86_64-linux/codex/default.nix b/systems/x86_64-linux/codex/default.nix index 949d472..8372e7b 100644 --- a/systems/x86_64-linux/codex/default.nix +++ b/systems/x86_64-linux/codex/default.nix @@ -7,6 +7,7 @@ { pkgs , modulesPath , config +, lib , ... }: { imports = [ @@ -85,17 +86,19 @@ virtualHosts = { "aux.computer" = { enableACME = true; - locations."/".return = "308 https://auxolotl.org/$request_uri"; + forceSSL = true; + globalRedirect = "auxolotl.org"; + redirectCode = 308; }; - "forum.aux.computer" = { enableACME = true; - locations."/".return = "308 https://forum.auxolotl.org/$request_uri"; + forceSSL = true; + globalRedirect = "forum.auxolotl.org"; + redirectCode = 308; }; }; }; }; - system.stateVersion = "23.11"; }