fix perms error
This commit is contained in:
parent
9dbaf61484
commit
19c95a7d70
1 changed files with 7 additions and 6 deletions
|
|
@ -3,6 +3,10 @@
|
||||||
sandbox = "docs-sandbox.${homelab.domain}";
|
sandbox = "docs-sandbox.${homelab.domain}";
|
||||||
data-dir = "/mnt/data/apps/cryptpad";
|
data-dir = "/mnt/data/apps/cryptpad";
|
||||||
in {
|
in {
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d ${data-dir} 0750 cryptpad cryptpad -"
|
||||||
|
];
|
||||||
|
|
||||||
services.cryptpad = {
|
services.cryptpad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -23,8 +27,5 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.cryptpad.serviceConfig = {
|
systemd.services.cryptpad.serviceConfig.ReadWritePaths = [ data-dir ];
|
||||||
ReadWritePaths = [ data-dir ];
|
|
||||||
ProtectMountPoints = false;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue