From 68761b60e98d4e43105a70d53d7a5044473a0b18 Mon Sep 17 00:00:00 2001 From: Alexandre Jesus Date: Mon, 29 Aug 2022 23:23:28 +0100 Subject: Fix in nix code of 01-hello-world blog post --- content/blog/01-hello-world/index.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'content/blog/01-hello-world/index.md') diff --git a/content/blog/01-hello-world/index.md b/content/blog/01-hello-world/index.md index e0aaefe..0bdb3d0 100644 --- a/content/blog/01-hello-world/index.md +++ b/content/blog/01-hello-world/index.md @@ -171,19 +171,13 @@ inputs.website = { and use the `nginx.virtualHosts` option to deploy it: ``` nix -nginx.virtualHosts = { +services.nginx.virtualHosts = { "adbjesus.com" = { default = true; forceSSL = true; enableACME = true; - locations = { - "/" = { - root = "${inputs.website.packages.${system}.website}/public"; - extraConfig = '' - add_header Last-Modified "${toDateTime inputs.website.lastModified}"; - add_header Cache-Control max-age="${toString (60 * 60 * 24)}"; - ''; - }; + locations."/" = { + root = "${website.packages.x86_64-linux.website}/public"; }; }; }; -- cgit v1.2.3