Add wiki service.

main
Joshua Potter 2024-01-30 11:35:38 -07:00
parent 0b5c179fb3
commit 7c5fcc5a88
2 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,7 @@
../../services/blog.nix
../../services/bookshelf.nix
../../services/portfolio.nix
../../services/wiki.nix
];
networking = {

14
services/wiki.nix Normal file
View File

@ -0,0 +1,14 @@
{ system, ... }:
let
wiki = builtins.getFlake
"github:jrpotter/wiki/7fa6887142330f5d51d8da45f896441684b6ef93";
in
{
services.nginx.virtualHosts."wiki.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = wiki.packages.${system}.app;
};
};
}