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 14:25:12 +01:00
|
|
|
jellyfin.enable || pirate.enable || transmission.enable;
|
2021-01-31 22:31:04 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
config.users.groups.media = lib.mkIf needed { };
|
|
|
|
}
|