Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 5s
23 lines
596 B
Nix
23 lines
596 B
Nix
{ homelab, ... }: let
|
|
domain = "docs.${homelab.domain}";
|
|
sandbox = "docs-sandbox.${homelab.domain}";
|
|
data-dir = "/mnt/data/apps/cryptpad";
|
|
in {
|
|
services.cryptpad = {
|
|
enable = true;
|
|
settings = {
|
|
httpPort = 7090;
|
|
httpAddress = "127.0.0.1";
|
|
httpUnsafeOrigin = "https://${domain}";
|
|
httpSafeOrigin = "https://${sandbox}";
|
|
blockDailyCheck = true;
|
|
disableIntegratedEviction = true;
|
|
};
|
|
};
|
|
|
|
fileSystems."/var/lib/cryptpad" = {
|
|
device = "/mnt/data/apps/cryptpad";
|
|
dependsOn = [ "/mnt/data" ];
|
|
options = [ "bind" "nofail" ];
|
|
};
|
|
}
|