nix-config/services/media.nix
Bruno BELANYI 6038d0df60 services: add sabnzbd
Its configuration isn't declarative :-(.

Notably, the port needs to be changed from '8080' to '9090' in its
configuration file (at '/var/lib/sabnzbd/').
2021-02-03 20:38:54 +01:00

11 lines
255 B
Nix

# Abstracting away the need for a common 'media' group
{ config, lib, ... }:
let
needed = with config.my.services;
jellyfin.enable || pirate.enable || sabnzbd.enable || transmission.enable;
in
{
config.users.groups.media = lib.mkIf needed { };
}