modules: system: remove 'media'

It was not the idiomatic way to do this.
This commit is contained in:
Bruno BELANYI 2021-09-15 15:57:23 +02:00
parent 8c0b70dcb5
commit 4ccf549e58
8 changed files with 17 additions and 18 deletions

View file

@ -6,7 +6,6 @@
./boot.nix
./documentation.nix
./language.nix
./media.nix
./nix.nix
./packages.nix
./users.nix

View file

@ -1,17 +0,0 @@
# Abstracting away the need for a common 'media' group
{ config, lib, ... }:
let
mediaServices = with config.my.services; [
calibre-web
jellyfin
paperless
pirate
sabnzbd
transmission
];
needed = builtins.any (service: service.enable) mediaServices;
in
{
config.users.groups.media = lib.mkIf needed { };
}