diff --git a/.gitmodules b/.gitmodules index 3570931..b8102d7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "nix-secrets"] path = nix-secrets url = gitea@git.vatthauer.xyz:leonv/nix-secrets.git +[submodule "willem/services/resumee-website"] + path = willem/services/resumee-website + url = forgejo@git.vatthauer.xyz:leonv/resumee-website.git diff --git a/willem/services/nginx.nix b/willem/services/nginx.nix index 96aebac..4abb968 100644 --- a/willem/services/nginx.nix +++ b/willem/services/nginx.nix @@ -30,4 +30,9 @@ proxyPass = "http://localhost:8096"; }; }; + services.nginx.virtualHosts."blog.korfuri.fr" = { + forceSSL = true; + enableACME = true; + root = callPackage ./resumee-website.nix {}; + }; } diff --git a/willem/services/resumee-website b/willem/services/resumee-website new file mode 160000 index 0000000..da26393 --- /dev/null +++ b/willem/services/resumee-website @@ -0,0 +1 @@ +Subproject commit da26393e34ba9178a5b55737f7616aa8be25b5b3 diff --git a/willem/services/resumee-website.nix b/willem/services/resumee-website.nix new file mode 100644 index 0000000..344a756 --- /dev/null +++ b/willem/services/resumee-website.nix @@ -0,0 +1,11 @@ +{ stdenv, hugo }: +stdenv.mkDerivation { + name = "resumee-website"; + src = ./resumee-website; + nativeBuildInputs = [ hugo ]; + phases = [ "unpackPhase" "buildPhase" ]; + buildPhase = '' + hugo -s . -d "$out" + ''; +} +