feat(newsboat): add newsboat configuration.

This commit is contained in:
CronyAkatsuki 2025-05-01 22:54:30 +02:00
parent 2546c3e774
commit 8ce7a1ed21
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1 @@
"query:Unread:unread = \"yes\""

View File

@ -12,6 +12,7 @@
./restic.nix
./shell-additions.nix
./flatpak.nix
./newsboat.nix
];
crony.mangohud.enable = lib.mkDefault true;
@ -26,4 +27,5 @@
crony.gaming.enable = lib.mkDefault true;
crony.shell-additions.enable = lib.mkDefault true;
crony.flatpak.enable = lib.mkDefault true;
crony.newsboat.enable = lib.mkDefault true;
}

View File

@ -0,0 +1,47 @@
{
config,
lib,
...
}: {
options = {
crony.newsboat.enable = lib.mkEnableOption "Enable and config newsboat how I wan't it";
};
config = lib.mkIf config.crony.newsboat.enable {
programs.newsboat = {
enable = true;
autoReload = true;
reloadThreads = 10;
extraConfig = ''
unbind-key ENTER
unbind-key j
unbind-key k
unbind-key J
unbind-key K
bind-key j down
bind-key k up
bind-key l open
bind-key h quit
bind-key g home
bind-key G end
bind-key a toggle-article-read
confirm-mark-feed-read yes
urls-source "ttrss"
ttrss-url "https://ttrss.cronyakatsuki.xyz"
ttrss-login "crony"
ttrss-passwordfile "~/.config/newsboat/password.txt"
download-path "~/Downloads"
max-downloads 2
player "mpv"
'';
};
home.file = {
".config/newsboat/urls".source = ./configs/newsboat-queries;
};
};
}