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