Pds, add default pds with config options

This commit is contained in:
Julia Lange 2025-03-17 16:17:07 -07:00
parent efa7cd004e
commit cb75b0a444
Signed by: Julia
SSH key fingerprint: SHA256:50XUMcOFYPUs9/1j7p9SPnwASZ7QnxXm7THF7HkbqzQ

View file

@ -0,0 +1,21 @@
{ config, pkgs, lib, ... }:
{
options.pds = {
enable = lib.mkEnableOption "Enables atproto Personal Data Server";
hostname = lib.mkOption { type = lib.types.str; };
adminEmail = lib.mkOption { type = lib.types.str; };
environmentFile = lib.mkOption { type = lib.types.path; };
};
config = lib.mkIf config.pds.enable {
services.pds = {
enable = true;
environmentFiles = [ config.pds.environmentFile ];
settings = {
PDS_HOSTNAME = config.pds.hostname;
PDS_ADMIN_EMAIL = config.pds.adminEmail;
};
};
};
}