1
0
Fork 0

fix arr backup

This commit is contained in:
ibizaman 2023-09-29 23:19:39 -07:00
parent 82225c63fc
commit 237c7c6e82

View file

@ -93,12 +93,18 @@ in
enable = true; enable = true;
dataDir = "/var/lib/readarr"; dataDir = "/var/lib/readarr";
}; };
users.users.readarr = {
extraGroups = [ "media" ];
};
# Listens on port 8686 # Listens on port 8686
services.lidarr = lib.mkIf cfg.lidarr.enable { services.lidarr = lib.mkIf cfg.lidarr.enable {
enable = true; enable = true;
dataDir = "/var/lib/lidarr"; dataDir = "/var/lib/lidarr";
}; };
users.users.lidarr = {
extraGroups = [ "media" ];
};
shb.nginx.autheliaProtect = shb.nginx.autheliaProtect =
let let
@ -139,7 +145,6 @@ in
}; };
in in
lib.mkMerge (lib.mapAttrsToList backupConfig apps); lib.mkMerge (lib.mapAttrsToList backupConfig apps);
} }
] ++ map (name: { ] ++ map (name: {
systemd.tmpfiles.rules = lib.mkIf (lib.hasAttr "dataDir" config.services.${name}) [ systemd.tmpfiles.rules = lib.mkIf (lib.hasAttr "dataDir" config.services.${name}) [