aboutsummaryrefslogtreecommitdiffstats
path: root/apps/static-website/module.nix
diff options
context:
space:
mode:
Diffstat (limited to 'apps/static-website/module.nix')
-rw-r--r--apps/static-website/module.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/static-website/module.nix b/apps/static-website/module.nix
new file mode 100644
index 0000000..659dfad
--- /dev/null
+++ b/apps/static-website/module.nix
@@ -0,0 +1,4 @@
+{ appConfig, ... }: {
+ services.nginx.enable = true;
+ services.nginx.virtualHosts.${appConfig.domain}.locations."/".root = appConfig.root;
+}