finally works again

This commit is contained in:
2026-08-03 13:22:28 -04:00
parent 4d72aa979a
commit a7f8971df1
16 changed files with 128 additions and 168 deletions
+27
View File
@@ -0,0 +1,27 @@
{ config, lib, pkgs, inputs, ... }:
let
website = pkgs.stdenv.mkDerivation {
name = "website";
src = inputs.grasswren;
nativeBuildInputs = [ pkgs.hugo ];
buildPhase = "hugo --minify";
installPhase = "cp -r public $out";
};
in
{
services.caddy = {
enable = true;
virtualHosts."grasswren.net".extraConfig = ''
encode
root * ${website}/home
file_server
'';
virtualHosts."blog.grasswren.net".extraConfig = ''
encode
root * ${website}/blog
file_server
'';
};
}