Files
nix/hosts/server/modules/atproto-pds.nix
2026-02-13 20:35:14 +02:00

42 lines
1.1 KiB
Nix

{
config,
inputs,
pkgs,
...
}:
{
# TODO:
# Upload PDS backup to /var/lib/pds
# and specify secrets in /private/atproto-pds.env
services.bluesky-pds = {
enable = true;
pdsadmin.enable = true;
environmentFiles = [ "/private/atproto-pds.env" ];
settings = {
PDS_CRAWLERS = "https://bsky.network";
LOG_ENABLED = "true";
PDS_HOSTNAME = "castletown.darkworld.download";
PDS_VERSION = "\"DELTARUNE TOMMOROW!!!!\"";
PDS_DID_PLC_URL = "https://plc.directory";
PDS_CONTACT_EMAIL_ADDRESS = "ocbwoy3@ocbwoy3.dev";
PDS_PRIVACY_POLICY_URL = "https://bsky.social/about/support/privacy-policy";
PDS_TERMS_OF_SERVICE_URL = "https://bsky.social/about/support/tos";
PDS_ACCEPTING_REPO_IMPORTS = "true";
};
};
# Set host header to `localhost` in tunnel settings otherwise you'll end up wasting countless hours of your life
services.caddy = {
enable = true;
globalConfig = ''
auto_https off
'';
virtualHosts."localhost:80".extraConfig = builtins.readFile ./Caddyfile;
};
}