{ usr, lib, config, ... }: 
with lib;
let cfg = config.u.media.newsboat;
in {
  options.u.media.newsboat.enable = mkOption {
    type = types.bool;
    default = config.u.media.enable && usr.extraBloat;
  };

  config = mkIf cfg.enable {
    programs.newsboat = {
      enable = true;
      autoReload = true;
      urls = [
        { url = "https://hnrss.org/newest"; }
        { url = "https://hnrss.org/newest?q=git+OR+linux"; }
        { url = "https://hnrss.org/best"; }
      ];
    };
  };
}
