Skip to content

Commit

Permalink
fix: bazarr permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Oct 22, 2023
1 parent 1d1fefb commit 9afa4bb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions components/mediacenter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ in {
isSystemUser = true;
group = "mediaoperators";
};
bazarr = mkIf cfg.linux-isos.enable {
isSystemUser = true;
group = "bazarr";
extraGroups = ["mediaoperators" "configoperators"];
};
radarr = mkIf cfg.linux-isos.enable {
isSystemUser = true;
group = "radarr";
Expand All @@ -55,6 +60,7 @@ in {
configoperators = {};
radarr = mkIf cfg.linux-isos.enable {};
sonarr = mkIf cfg.linux-isos.enable {};
bazarr = mkIf cfg.linux-isos.enable {};
downloader = mkIf cfg.linux-isos.enable {};
youtube = mkIf cfg.youtube.enable {};
};
Expand Down Expand Up @@ -89,7 +95,11 @@ in {
enable = true;
openFirewall = true;
};
services.bazarr.enable = mkIf cfg.linux-isos.enable true;
services.bazarr = lib.mkIf cfg.linux-isos.enable {
enable = true;
user = "bazarr";
group = "bazarr";
};

virtualisation.docker.enable = cfg.linux-isos.enable || cfg.youtube.enable;
environment.systemPackages =
Expand Down Expand Up @@ -120,7 +130,7 @@ in {
}
{
host = "subtitles";
port = 6767;
port = config.services.bazarr.listenPort;
}
{
host = "indexers";
Expand Down

0 comments on commit 9afa4bb

Please sign in to comment.