diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/p-body/nginx.nix | 4 |
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"; }; }; |
