home-manager | add newsboat

This commit is contained in:
Don Harper 2023-07-15 23:43:21 -05:00
parent fd7114fd6c
commit 89fd407ddb
2 changed files with 50 additions and 0 deletions

View file

@ -12,6 +12,7 @@
./khal.nix
./kitty.nix
./liquidprompt.nix
./newsboat.nix
];
home = {
username = "don";

49
home/newsboat.nix Normal file
View file

@ -0,0 +1,49 @@
{ config, pkgs, ... }:
{
programs.newsboat = {
enable = true;
autoReload = true;
browser = "~/bin/myweb";
reloadThreads = 4;
reloadTime = 45;
extraConfig =
''
article-sort-order date
bind-key D mark-feed-read
bind-key J next-feed
bind-key K prev-feed
bind-key N toggle-article-read
bind-key SPACE open
bind-key a mark-feed-read
bind-key d toggle-article-read
bind-key i quit
bind-key j next
bind-key k prev
cleanup-on-quit yes
confirm-exit yes
delete-read-articles-on-quit yes
display-article-progress yes
download-full-page yes
error-log "~/.config/newsboat/error.log"
external-url-viewer "urlview"
feed-sort-order firsttag
freshrss-login "don"
freshrss-password "Qz77ALbnEl*I2!%QZhs9K"
freshrss-show-special-feeds "no"
freshrss-url "https://rss.duckland.org/api/greader.php"
refresh-on-startup yes
show-read-articles no
show-read-feeds no
urls-source "freshrss"
# Theme Dracula
color listnormal color117 default
color listfocus color84 default
color info color136 color235
color background color244 color234
color article color231 default
color listnormal_unread color117 default
color listfocus_unread color84 default
highlight article "^(Title):.*$" color231 black
'';
};
}