aboutsummaryrefslogtreecommitdiffstats
path: root/apps/static-website/module.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-15 06:27:47 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-19 05:19:37 +0100
commitdb8cb61d4a13fa861440379f4788a6524d880467 (patch)
tree043f798a9ecb149285e06aaa3e46f2850d5c6a00 /apps/static-website/module.nix
parent59b9bf48851f85de8844d888de6c82dcfb4df5fa (diff)
init code.nomath.org
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;
+}