Files
nixos/modules/environments/readarr/default.nix
T
2024-01-20 10:18:08 +01:00

26 lines
514 B
Nix

# manages and downloads films
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.readarr;
# domain = config.networking.domain;
# port = 7878;
in
{
options.my.profiles.readarr = with lib; {
enable = mkEnableOption "Readarr for ebook management";
};
config = lib.mkIf cfg.enable {
services.readarr = {
enable = true;
openFirewall = true;
};
my.profiles.prowlarr.enable = true;
systemd.services.readarr = {
after = [ "network-online.target" ];
};
};
}