nixos-configs/modules/apps/newsboat.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2025-11-14 00:10:40 +01:00
{
2026-02-22 23:48:43 +01:00
pkgs,
2025-11-14 00:10:40 +01:00
config,
lib,
...
}:
let
cfg = config.modules.apps.newsboat;
in
{
options.modules.apps.newsboat = {
enable = lib.my.mkBoolOpt false;
};
config = lib.mkIf cfg.enable {
home-manager.users.${config.user.name} = {
programs.newsboat = {
enable = true;
autoFetchArticles = {
enable = true;
onCalendar = "hourly";
};
extraConfig = ''
urls-source "ocnews"
ocnews-url "https://cloud.banditlair.com"
ocnews-login "paultrial"
2026-02-22 23:48:43 +01:00
ocnews-passwordeval "${pkgs.libsecret}/bin/secret-tool lookup elfeed nextcloud"
2025-11-14 00:10:40 +01:00
cleanup-on-quit yes
bind gg everywhere home
bind G everywhere end
bind u everywhere toggle-article-read
bind , everywhere sort
bind ^u everywhere pageup
bind ^d everywhere pagedown
bind k everywhere up
bind j everywhere down
bind l feedlist open
bind l articlelist open
bind h articlelist quit
bind h article quit
'';
};
};
};
}