dotfiles/nixos/boxes/cupsnet/cryptpad.nix

24 lines
518 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 = {
verbose = true;
2024-01-15 14:15:15 +00:00
httpUnsafeOrigin = domain;
httpSafeOrigin = sandboxDomain;
adminKeys = ["[cyplo@notes.peninsula.industries/I6JogBXmOeSxP0QSMltqs24QR4qgnpo70eRbDDLAFwA=]"];
};
};
}