From f64ebd9402c03de16ec11b0986a42416a25bd2ac Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 16 May 2023 05:33:15 -0400 Subject: p-body: start hosting my website --- hosts/p-body/default.nix | 3 +++ hosts/p-body/nginx.nix | 18 +++--------------- 2 files changed, 6 insertions(+), 15 deletions(-) (limited to 'hosts') diff --git a/hosts/p-body/default.nix b/hosts/p-body/default.nix index 7005854..1a92889 100644 --- a/hosts/p-body/default.nix +++ b/hosts/p-body/default.nix @@ -1,5 +1,6 @@ { config, + getchoo-website, guzzle_api, modulesPath, pkgs, @@ -24,6 +25,8 @@ hostName = "p-body"; }; + nixpkgs.overlays = [getchoo-website.overlays.default]; + services = { guzzle-api = { enable = true; diff --git a/hosts/p-body/nginx.nix b/hosts/p-body/nginx.nix index 0be0f5b..50a5b92 100644 --- a/hosts/p-body/nginx.nix +++ b/hosts/p-body/nginx.nix @@ -34,21 +34,9 @@ in { enableACME = true; serverAliases = ["www.${domain}"]; - locations = { - "/" = { - root = - pkgs.writeTextDir "index.html" - '' - - - - - - - ''; - - index = "index.html"; - }; + locations."/" = { + root = "${pkgs.getchoo-website}/libexec/getchoo-website/deps/getchoo-website/dist/"; + index = "index.html"; }; }; -- cgit v1.2.3