From 9b49731c02ec606049894e276b3651ea721cd429 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 8 Mar 2020 19:11:10 +0000 Subject: [PATCH] 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. --- nixos/socrates/configuration.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index fbdff3f50..2cf23e48e 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;