nixos-config/services/media.nix

11 lines
212 B
Nix
Raw Normal View History

2021-02-19 21:21:35 +01:00
{ config, lib, ... }:
let
mediaServices = with config.my.services; [
jellyfin
];
needed = builtins.any (service: service.enable) mediaServices;
in
{
config.users.groups.media = lib.mkIf needed { };
}