Updated docs and removed some superflous statedirs from systemd-tmpfiles

This commit is contained in:
rasmus-kirk
2024-03-12 23:29:56 +01:00
parent 96fffa452d
commit 83e3246489
10 changed files with 152 additions and 62 deletions
+14 -7
View File
@@ -14,9 +14,20 @@ in with lib; {
stateDir = mkOption {
type = types.path;
default = "${nixarr.stateDir}/jellyfin";
defaultText = literalExpression ''!cfg.vpn.enable'';
example = "/home/user/.local/share/nixarr/jellyfin";
description = "The state directory for Jellyfin.";
defaultText = literalExpression ''"''${nixarr.stateDir}/jellyfin"'';
example = "/nixarr/.state/jellyfin";
description = ''
The location of the state directory for the Jellyfin 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/jellyfin
```
Is not supported, because `/home/user` is owned by `user`.
'';
};
openFirewall = mkOption {
@@ -170,10 +181,6 @@ in with lib; {
systemd.tmpfiles.rules = [
"d '${cfg.stateDir}' 0700 streamer root - -"
"d '${cfg.stateDir}/log' 0700 streamer root - -"
"d '${cfg.stateDir}/cache' 0700 streamer root - -"
"d '${cfg.stateDir}/data' 0700 streamer root - -"
"d '${cfg.stateDir}/config' 0700 streamer root - -"
];
services.jellyfin = {