modules: system: remove 'media'
It was not the idiomatic way to do this.
This commit is contained in:
parent
8c0b70dcb5
commit
4ccf549e58
8 changed files with 17 additions and 18 deletions
|
|
@ -6,7 +6,6 @@
|
|||
./boot.nix
|
||||
./documentation.nix
|
||||
./language.nix
|
||||
./media.nix
|
||||
./nix.nix
|
||||
./packages.nix
|
||||
./users.nix
|
||||
|
|
|
|||
|
|
@ -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 { };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue