nixos: services: servarr: persist data
This commit is contained in:
parent
a1bc64cf48
commit
f860452c1c
|
@ -19,6 +19,16 @@ let
|
||||||
enable = true;
|
enable = true;
|
||||||
group = "media";
|
group = "media";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
my.system.persist.directories =
|
||||||
|
let
|
||||||
|
# Bazarr breaks the mold unfortunately
|
||||||
|
dataDir =
|
||||||
|
if service != "bazarr"
|
||||||
|
then config.services.${service}.dataDir
|
||||||
|
else "/var/lib/bazarr";
|
||||||
|
in
|
||||||
|
[ dataDir ];
|
||||||
};
|
};
|
||||||
|
|
||||||
mkRedirection = service: {
|
mkRedirection = service: {
|
||||||
|
|
Loading…
Reference in a new issue