about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-08T19·11+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-08T19·11+0000
commit9b49731c02ec606049894e276b3651ea721cd429 (patch)
tree5969903081a720d59ce3084f8362c148e6df2011
parenta9bd18c44042d89c764c9700686b43a4a6d7e3c3 (diff)
Use static directory path as root for learn.wpcarro.dev
With this simple change, Nix should copy the static directory and all of its
contents to /nix/store and return the path to that directory.

See TODO for more what I would have liked to do ideally.
-rw-r--r--nixos/socrates/configuration.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index fbdff3f50f6b..2cf23e48e67e 100644
--- a/nixos/socrates/configuration.nix
+++ b/nixos/socrates/configuration.nix
@@ -147,7 +147,9 @@ in {
       "learn.wpcarro.dev" = {
         addSSL = true;
         enableACME = true;
-        root = "/var/www/learn";
+        # TODO(wpcarro): Prefer creating a default.nix in //learn and using
+        # briefcase.learn as root.
+        root = ~/briefcase/learn/static;
       };
       "blog.wpcarro.dev" = {
         addSSL = true;