Compare commits

..

2 commits

Author SHA1 Message Date
d4de48420f bind mount loophole
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 5s
2026-05-01 08:05:02 +07:00
14a65b8c7e revert not working fix 2026-05-01 07:58:04 +07:00
2 changed files with 12 additions and 15 deletions

View file

@ -3,10 +3,6 @@
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 = {
@ -16,16 +12,12 @@ 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";
};
};
systemd.services.cryptpad.serviceConfig.ReadWritePaths = [ data-dir ];
fileSystems."/var/lib/cryptpad" = {
device = "/mnt/data/apps/cryptpad";
dependsOn = [ "/mnt/data" ];
options = [ "bind" "nofail" ];
};
}

View file

@ -5,10 +5,15 @@
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" ];
};
}