nixos-configuration/services/portfolio.nix

23 lines
524 B
Nix
Raw Normal View History

{ system, ... }:
let
portfolio = builtins.getFlake
2024-04-18 14:52:17 +00:00
"github:jrpotter/portfolio/ab01d079d1cd491ab7b44c98516cb290cf088761";
in
{
services.nginx = {
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."www.jrpotter.com" = {
forceSSL = true;
enableACME = true;
serverAliases = [ "jrpotter.com" ];
locations."/" = {
root = portfolio.packages.${system}.app;
};
};
};
}