1
1
Files
deployed-nixos-server-and-apps/nixos-apps/fancytypist.com.nix
Bill Ewanick 83da4e4cf9
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Gitea Actions Demo / build-site (push) Successful in 4s
WIP
2026-01-04 02:11:34 -05:00

62 lines
1.4 KiB
Nix

{pkgs, ...}: let
PROJECT_ROOT = "/workspace/deployed-nixos-server-and-apps/nixos-apps/fancyTypist.dev";
HOST = "localhost";
PORT = 12513;
in {
services.caddy = {
enable = true;
virtualHosts = {
"fancytypist.com" = {
serverAliases = ["www.fancytypist.com"];
extraConfig = ''
respond "Hello, world! fancytypist.com"
'';
};
"fancytypist.ca" = {
serverAliases = ["www.fancytypist.ca"];
extraConfig = ''
respond "Hello, world! fancytypist.ca"
'';
};
"osds.fancytypist.ca" = {
extraConfig = ''
respond "Welcome to the Ottawa Swing Dance Society"
'';
};
"osds.fancytypist.dev" = {
serverAliases = ["osds.fancytypist.dev"];
extraConfig = ''
reverse_proxy ${HOST}:${toString PORT}
'';
};
};
};
systemd.user.services = {
fancyTypistDotDev-site = {
enable = false;
description = "The Haskell Servant executable server that hosts my FancyTypist.dev site.";
path = with pkgs; [
nix
git
];
script = ''
cd ${PROJECT_ROOT}
nix run .#fancyTypistDotDev-site
'';
};
};
services.lemmy = {
enable = true;
settings = {
hostname = "helpme.fancytypist.ca";
database.createLocally = true;
};
caddy.enable = true;
};
}