nixos-config/services/media.nix

11 lines
212 B
Nix

{ config, lib, ... }:
let
mediaServices = with config.my.services; [
jellyfin
];
needed = builtins.any (service: service.enable) mediaServices;
in
{
config.users.groups.media = lib.mkIf needed { };
}