update(deimos): Roll out portfolio and blog.

main
Joshua Potter 2023-12-14 09:23:19 -07:00
parent 96c8f6b056
commit 7f51cd54d1
1 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,9 @@
{ system, stateVersion, lib, ... }: { system, stateVersion, lib, ... }:
let let
blog = builtins.getFlake blog = builtins.getFlake
"github:jrpotter/blog/689107113f248cc2cad2a53d9f7d32be484c9060"; "github:jrpotter/blog/d5e3dba9f2620050365084e396bd481e68dd3795";
portfolio = builtins.getFlake
"github:jrpotter/portfolio/d07f24b8087f712f6d2436e2fbc4af6b56518ce6";
in in
{ {
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [ imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
@ -30,6 +32,14 @@ in
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"www.jrpotter.com" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "jrpotter.com" ];
locations."/" = {
root = portfolio.packages.${system}.app;
};
};
"blog.jrpotter.com" = { "blog.jrpotter.com" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;