summaryrefslogtreecommitdiff
path: root/hosts/p-body
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/p-body')
-rw-r--r--hosts/p-body/default.nix3
-rw-r--r--hosts/p-body/nginx.nix18
2 files changed, 6 insertions, 15 deletions
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"
- ''
- <!DOCTYPE html>
- <html lang="en">
- <body style="text-align: center;">
- <iframe width="560" height="315" src="https://www.youtube.com/embed/voXpIgb9Nbk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
- </body>
- </html>
- '';
-
- index = "index.html";
- };
+ locations."/" = {
+ root = "${pkgs.getchoo-website}/libexec/getchoo-website/deps/getchoo-website/dist/";
+ index = "index.html";
};
};