dotfiles/nixos/boxes/cupsnet/cryptpad.nix

23 lines
496 B
Nix
Raw Normal View History

2024-01-15 14:15:15 +00:00
{
config,
pkgs,
inputs,
lib,
...
}: let
baseDomain = "peninsula.industries";
domain = "https://notes.${baseDomain}";
sandboxDomain = "https://notes-sandbox.${baseDomain}";
in {
imports = [../nginx.nix];
services.cryptpad = {
enable = true;
configureNginx = true;
settings = {
httpUnsafeOrigin = domain;
httpSafeOrigin = sandboxDomain;
adminKeys = ["[cyplo@notes.peninsula.industries/I6JogBXmOeSxP0QSMltqs24QR4qgnpo70eRbDDLAFwA=]"];
};
};
}