diff --git a/blog/default.nix b/blog/default.nix new file mode 100644 index 000000000..437f5cc10 --- /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 a1fbe0789..0d8d7a861 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; }; }; };