about summary refs log tree commit diff
path: root/web/homepage/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-08T14·06+0000
committerVincent Ambo <tazjin@google.com>2020-02-08T14·06+0000
commit7935957938fb4bd73b557e42fa828b1470979777 (patch)
treee7289865c0b38851172a292897e8dd897a2ae672 /web/homepage/default.nix
parent8e9fb739582b5ed871522826ea145f4a9dac2777 (diff)
refactor(web): Move nginx setup to //web/homepage r/487
The homepage is going to be the landing page for all content, whether
it be blog posts or other stuff.
Diffstat (limited to 'web/homepage/default.nix')
-rw-r--r--web/homepage/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/homepage/default.nix b/web/homepage/default.nix
new file mode 100644
index 000000000000..94dfaf3dc6f1
--- /dev/null
+++ b/web/homepage/default.nix
@@ -0,0 +1,15 @@
+# Assembles the website index and configures an nginx instance to
+# serve it.
+#
+# The website is made up of a simple header&footer and content
+# elements for things such as blog posts and projects.
+#
+# Content for the blog is in //web/blog instead of here.
+{ pkgs, lib, ... }:
+
+with pkgs;
+with nix.yants;
+
+third_party.callPackage ./nginx.nix {
+  blog = web.blog;
+}