Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Oct 29, 2023
2 parents d587baa + 9afa4bb commit 7a6aefa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 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 @@ -126,7 +136,7 @@ in {
}
{
host = "subtitles";
port = 6767;
port = config.services.bazarr.listenPort;
}
{
host = "indexers";
Expand Down
22 changes: 11 additions & 11 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a6aefa

Please sign in to comment.