about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--blog/default.nix12
-rw-r--r--nixos/socrates/configuration.nix2
2 files changed, 13 insertions, 1 deletions
diff --git a/blog/default.nix b/blog/default.nix
new file mode 100644
index 0000000000..437f5cc108
--- /dev/null
+++ b/blog/default.nix
@@ -0,0 +1,12 @@
+{ pkgs, ... }:
+
+pkgs.stdenv.mkDerivation {
+  name = "blog.wpcarro.dev";
+  buildInputs = with pkgs; [ hugo ];
+  src = ./.;
+  buildPhase = ''
+    mkdir -p $out
+    ${pkgs.hugo}/bin/hugo --minify --destination $out
+  '';
+  dontInstall = true;
+}
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index a1fbe07898..0d8d7a8612 100644
--- a/nixos/socrates/configuration.nix
+++ b/nixos/socrates/configuration.nix
@@ -154,7 +154,7 @@ in {
       "blog.wpcarro.dev" = {
         addSSL = true;
         enableACME = true;
-        root = "/var/www/blog";
+        root = briefcase.blog;
       };
     };
   };