nixos: services: pirate: persist data

This commit is contained in:
Bruno BELANYI 2021-11-05 15:58:07 +01:00
parent c4b8acf944
commit 62d9ea8939

View file

@ -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 config.users.user.${service}.home;
in
[ dataDir ];
}; };
mkRedirection = service: { mkRedirection = service: {