Updated docs and removed some superflous statedirs from systemd-tmpfiles
This commit is contained in:
@@ -13,9 +13,20 @@ in {
|
||||
stateDir = mkOption {
|
||||
type = types.path;
|
||||
default = "${nixarr.stateDir}/readarr";
|
||||
defaultText = literalExpression ''!cfg.vpn.enable'';
|
||||
example = "/home/user/.local/share/nixarr/readarr";
|
||||
description = "The state directory for Readarr";
|
||||
defaultText = literalExpression ''"''${nixarr.stateDir}/readarr"'';
|
||||
example = "/nixarr/.state/readarr";
|
||||
description = ''
|
||||
The location of the state directory for the Readarr service.
|
||||
|
||||
**Warning:** Setting this to any path, where the subpath is not
|
||||
owned by root, will fail! For example:
|
||||
|
||||
```nix
|
||||
stateDir = /home/user/nixarr/.state/readarr
|
||||
```
|
||||
|
||||
Is not supported, because `/home/user` is owned by `user`.
|
||||
'';
|
||||
};
|
||||
|
||||
openFirewall = mkOption {
|
||||
@@ -49,10 +60,6 @@ in {
|
||||
}
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d '${cfg.stateDir}' 0700 readarr root - -"
|
||||
];
|
||||
|
||||
services.readarr = {
|
||||
enable = cfg.enable;
|
||||
user = "readarr";
|
||||
|
||||
Reference in New Issue
Block a user