2021-01-31 22:31:04 +01:00
|
|
|
# Abstracting away the need for a common 'media' group
|
|
|
|
|
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
needed = with config.my.services;
|
2021-02-01 16:25:34 +01:00
|
|
|
jellyfin.enable || pirate.enable || sabnzbd.enable || transmission.enable;
|
2021-01-31 22:31:04 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
config.users.groups.media = lib.mkIf needed { };
|
|
|
|
}
|