Compare commits

..
2 changed files with 15 additions and 12 deletions

View file

@ -3,6 +3,10 @@
sandbox = "docs-sandbox.${homelab.domain}";
data-dir = "/mnt/data/apps/cryptpad";
in {
systemd.tmpfiles.rules = [
"d ${data-dir} 0750 cryptpad cryptpad -"
];
services.cryptpad = {
enable = true;
settings = {
@ -12,12 +16,16 @@ in {
httpSafeOrigin = "https://${sandbox}";
blockDailyCheck = true;
disableIntegratedEviction = true;
archivePath = "${data-dir}/archive";
pinPath = "${data-dir}/pins";
taskPath = "${data-dir}/tasks";
blockPath = "${data-dir}/block";
blobPath = "${data-dir}/blob";
blobStagingPath = "${data-dir}/blobstage";
decreePath = "${data-dir}/decrees";
logPath = "${data-dir}/logs";
};
};
fileSystems."/var/lib/cryptpad" = {
device = "/mnt/data/apps/cryptpad";
dependsOn = [ "/mnt/data" ];
options = [ "bind" "nofail" ];
};
systemd.services.cryptpad.serviceConfig.ReadWritePaths = [ data-dir ];
}

View file

@ -5,15 +5,10 @@
backupDir = "/mnt/data/apps/vaultwarden/backups";
environmentFile = "/mnt/data/apps/vaultwarden/.env";
config = {
DATA_FOLDER = "/mnt/data/apps/vaultwarden/data";
ROCKET_PORT = 8060;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_LOG = "critical";
};
};
fileSystems."/var/lib/vaultwarden" = {
device = "/mnt/data/apps/vaultwarden/data";
dependsOn = [ "/mnt/data" ];
options = [ "bind" "nofail" ];
};
}