nixos-config/services/media.nix

12 lines
229 B
Nix
Raw Permalink Normal View History

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