summaryrefslogtreecommitdiff
path: root/hosts/p-body/nginx.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/p-body/nginx.nix')
-rw-r--r--hosts/p-body/nginx.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/p-body/nginx.nix b/hosts/p-body/nginx.nix
index 50a5b92..ae1f251 100644
--- a/hosts/p-body/nginx.nix
+++ b/hosts/p-body/nginx.nix
@@ -1,9 +1,11 @@
{
config,
+ getchoo-website,
pkgs,
...
}: let
inherit (config.networking) domain;
+ website = getchoo-website.packages.${pkgs.system}.default;
in {
networking.firewall.allowedTCPPorts = [80 443];
@@ -35,7 +37,7 @@ in {
serverAliases = ["www.${domain}"];
locations."/" = {
- root = "${pkgs.getchoo-website}/libexec/getchoo-website/deps/getchoo-website/dist/";
+ root = "${website}/libexec/getchoo-website/deps/getchoo-website/dist/";
index = "index.html";
};
};