diff --git a/hive/deimos/default.nix b/hive/deimos/default.nix index 1d1e891..9eded06 100644 --- a/hive/deimos/default.nix +++ b/hive/deimos/default.nix @@ -5,6 +5,7 @@ ../../services/blog.nix ../../services/bookshelf.nix ../../services/portfolio.nix + ../../services/wiki.nix ]; networking = { diff --git a/services/wiki.nix b/services/wiki.nix new file mode 100644 index 0000000..84a4ef5 --- /dev/null +++ b/services/wiki.nix @@ -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; + }; + }; +}