diff --git a/hive/deimos/default.nix b/hive/deimos/default.nix index 9eded06..e03ee97 100644 --- a/hive/deimos/default.nix +++ b/hive/deimos/default.nix @@ -4,8 +4,8 @@ ../../digital-ocean/configuration.nix ../../services/blog.nix ../../services/bookshelf.nix + ../../services/notebook.nix ../../services/portfolio.nix - ../../services/wiki.nix ]; networking = { diff --git a/services/notebook.nix b/services/notebook.nix new file mode 100644 index 0000000..7adf838 --- /dev/null +++ b/services/notebook.nix @@ -0,0 +1,15 @@ +{ system, ... }: +let + notebook = builtins.getFlake + "github:jrpotter/notebook/d3feb5028bca495b4c96314e251f4308e454a113"; +in +{ + services.nginx.virtualHosts."notebook.jrpotter.com" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = notebook.packages.${system}.app; + tryFiles = "$uri $uri.html $uri/ =404"; + }; + }; +} diff --git a/services/portfolio.nix b/services/portfolio.nix index bb55c94..d1feff9 100644 --- a/services/portfolio.nix +++ b/services/portfolio.nix @@ -1,7 +1,7 @@ { system, ... }: let portfolio = builtins.getFlake - "github:jrpotter/portfolio/f8ce67a38c73bf34f42056c3e32e138b3cdac8bb"; + "github:jrpotter/portfolio/357999e784102ba11c52cf1fc9edbfaa8a00912d"; in { services.nginx.virtualHosts."www.jrpotter.com" = { diff --git a/services/wiki.nix b/services/wiki.nix deleted file mode 100644 index f17ae7b..0000000 --- a/services/wiki.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ system, ... }: -let - wiki = builtins.getFlake - "github:jrpotter/wiki/ea476410252407a861c1205366675e87137525f6"; -in -{ - services.nginx.virtualHosts."wiki.jrpotter.com" = { - forceSSL = true; - enableACME = true; - locations."/" = { - root = wiki.packages.${system}.app; - tryFiles = "$uri $uri.html $uri/ =404"; - }; - }; -}