# manages and downloads films { config, lib, pkgs, ... }: let cfg = config.my.profiles.audiobookshelf; in { options.my.profiles.actual = with lib; { enable = mkEnableOption "Audio Book Service"; }; config = lib.mkIf cfg.enable { services.actual = { enable = true; openFirewall = true; settings = { port = 40465; hostname = "0.0.0.0"; }; }; environment.systemPackages = with pkgs; [ actual-server ]; systemd.services.actual = { after = [ "network-online.target" ]; }; }; }