Add newsboat
This commit is contained in:
parent
41fdba3110
commit
96c2fddfa9
2 changed files with 58 additions and 2 deletions
53
modules/apps/newsboat.nix
Normal file
53
modules/apps/newsboat.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
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"
|
||||
ocnews-passwordeval "secret-tool lookup elfeed nextcloud"
|
||||
|
||||
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue