Files
nixos/modules/environments/readarr/default.nix
T
2025-02-07 22:13:20 +01:00

32 lines
519 B
Nix

# manages and downloads films
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.readarr;
in
# domain = config.networking.domain;
# port = 7878;
{
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" ];
};
};
}