diff --git a/services/media.nix b/services/media.nix index fc6a8b1..e55ac89 100644 --- a/services/media.nix +++ b/services/media.nix @@ -2,8 +2,13 @@ { config, lib, ... }: let - needed = with config.my.services; - jellyfin.enable || pirate.enable || sabnzbd.enable || transmission.enable; + mediaServices = with config.my.services; [ + jellyfin + pirate + sabnzbd + transmission + ]; + needed = builtins.any (service: service.enable) mediaServices; in { config.users.groups.media = lib.mkIf needed { };