nix-flake/modules/system/homelab/docs.nix
satr14 d4de48420f
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 5s
bind mount loophole
2026-05-01 08:05:02 +07:00

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" ];
};
}