jellyfin: setup service

This commit is contained in:
Antoine Martin 2021-02-19 21:21:35 +01:00
parent 271fc656cc
commit 2b5ef6b145
4 changed files with 48 additions and 0 deletions

10
services/media.nix Normal file
View file

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