diff --git a/components/mediacenter/default.nix b/components/mediacenter/default.nix index d37e5f9..0780c74 100644 --- a/components/mediacenter/default.nix +++ b/components/mediacenter/default.nix @@ -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"; @@ -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 {}; }; @@ -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 = @@ -126,7 +136,7 @@ in { } { host = "subtitles"; - port = 6767; + port = config.services.bazarr.listenPort; } { host = "indexers"; diff --git a/flake.lock b/flake.lock index 640ed5a..786e38c 100644 --- a/flake.lock +++ b/flake.lock @@ -275,11 +275,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1697100850, - "narHash": "sha256-qSAzJVzNRIo+r3kBjL8TcpJctcgcHlnZyqdzpWgtg0M=", + "lastModified": 1697748412, + "narHash": "sha256-5VSB63UE/O191cuZiGHbCJ9ipc7cGKB8cHp0cfusuyo=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "fb6af288f6cf0f00d3af60cf9d5110433b954565", + "rev": "72d53d51704295f1645d20384cd13aecc182f624", "type": "github" }, "original": { @@ -375,11 +375,11 @@ }, "nixpkgs_4": { "locked": { - "narHash": "sha256-L7GyeErguS7Pg4h8nK0wGlcUTbfUMDu+HMf1UcyP72k=", - "rev": "bd1cde45c77891214131cbbea5b1203e485a9d51", - "revCount": 491536, + "narHash": "sha256-79Kuv+QdgsVc+rkibuAgWHnh8IXrLBTOKg5nM0Qvux0=", + "rev": "80c1aab725151632ddc2a20caeb914e76dd0673c", + "revCount": 491771, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2305.491536+rev-bd1cde45c77891214131cbbea5b1203e485a9d51/018b225f-f8ad-7003-820d-de4de97a7a06/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2305.491771+rev-80c1aab725151632ddc2a20caeb914e76dd0673c/018b48ec-8a1a-72b9-86cd-ed5c51bd508b/source.tar.gz" }, "original": { "type": "tarball", @@ -420,11 +420,11 @@ }, "unstable": { "locked": { - "narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=", - "rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a", - "revCount": 534224, + "narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=", + "rev": "ca012a02bf8327be9e488546faecae5e05d7d749", + "revCount": 536534, "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.534224+rev-f99e5f03cc0aa231ab5950a15ed02afec45ed51a/018b1d3c-12f0-76a5-b796-7668d7633f08/source.tar.gz" + "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.536534+rev-ca012a02bf8327be9e488546faecae5e05d7d749/018b3f36-b511-7e80-9e18-764e17d65d0b/source.tar.gz" }, "original": { "type": "tarball",