feat(newsboat): add newsboat configuration.
This commit is contained in:
parent
2546c3e774
commit
8ce7a1ed21
1
modules/linux/home-manager/configs/newsboat-queries
Normal file
1
modules/linux/home-manager/configs/newsboat-queries
Normal file
@ -0,0 +1 @@
|
|||||||
|
"query:Unread:unread = \"yes\""
|
@ -12,6 +12,7 @@
|
|||||||
./restic.nix
|
./restic.nix
|
||||||
./shell-additions.nix
|
./shell-additions.nix
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
|
./newsboat.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
crony.mangohud.enable = lib.mkDefault true;
|
crony.mangohud.enable = lib.mkDefault true;
|
||||||
@ -26,4 +27,5 @@
|
|||||||
crony.gaming.enable = lib.mkDefault true;
|
crony.gaming.enable = lib.mkDefault true;
|
||||||
crony.shell-additions.enable = lib.mkDefault true;
|
crony.shell-additions.enable = lib.mkDefault true;
|
||||||
crony.flatpak.enable = lib.mkDefault true;
|
crony.flatpak.enable = lib.mkDefault true;
|
||||||
|
crony.newsboat.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
47
modules/linux/home-manager/newsboat.nix
Normal file
47
modules/linux/home-manager/newsboat.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user