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 000000000000..437f5cc108d7
--- /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 a1fbe0789803..0d8d7a8612c4 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;
       };
     };
   };