Pds, add default pds with config options
This commit is contained in:
parent
efa7cd004e
commit
cb75b0a444
1 changed files with 21 additions and 0 deletions
21
nixosModules/services/pds/service.nix
Normal file
21
nixosModules/services/pds/service.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue