nix-config/modules/home-manager/rss/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
let
2022-01-28 14:54:58 +01:00
url = "nextcloud.monotremata.xyz";
dir = "${config.home.homeDirectory}/.newsboat";
2022-01-18 09:32:55 +01:00
user = "rilla";
in
{
2023-08-13 20:13:46 +02:00
home.packages = [ pkgs.rss-sync ];
2022-01-18 09:32:55 +01:00
programs.newsboat = {
enable = true;
autoReload = true;
2023-08-13 20:13:46 +02:00
browser = "firefox"; # todo: should be my open_link script
2022-01-18 09:32:55 +01:00
reloadThreads = 100;
extraConfig = ''
2022-01-28 14:54:58 +01:00
urls-source "ocnews"
ocnews-url "https://${url}/"
ocnews-login "${user}"
ocnews-passwordeval "${pkgs.pass}/bin/pass narwhal/${url}/${user}"
2022-01-18 09:32:55 +01:00
# unbind keys
unbind-key j
unbind-key k
unbind-key J
unbind-key K
# bind keys - vim style
bind-key j down
bind-key k up
bind-key l open
bind-key h quit
color background color15 color0
color listnormal color15 color0
color listfocus color230 color4
color listnormal_unread color2 color0
color listfocus_unread color2 color4 bold
color info color230 color4 bold
color article color15 color0
2022-01-28 14:54:58 +01:00
cache-file ${dir}/cache.db
cookie-cache ${dir}/cookies.txt
error-log ${dir}/error.log
save-path ${config.home.homeDirectory}/Documents/Articles"
2022-01-18 09:32:55 +01:00
'';
};
}