dotfiles/nixos/boxes/cupsnet/cryptpad.nix
2024-07-26 09:39:56 +01:00

23 lines
518 B
Nix

{
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;
httpUnsafeOrigin = domain;
httpSafeOrigin = sandboxDomain;
adminKeys = ["[cyplo@notes.peninsula.industries/I6JogBXmOeSxP0QSMltqs24QR4qgnpo70eRbDDLAFwA=]"];
};
};
}