[feat] Add newsboat config
This commit is contained in:
@@ -6,12 +6,14 @@
|
|||||||
./nvim.nix
|
./nvim.nix
|
||||||
./goread.nix
|
./goread.nix
|
||||||
./tuifeed.nix
|
./tuifeed.nix
|
||||||
|
./newsboat.nix
|
||||||
] ++ lib.optionals device.isLinux [ ../linux ];
|
] ++ lib.optionals device.isLinux [ ../linux ];
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
tuifeed
|
newsboat
|
||||||
russ
|
russ
|
||||||
|
|
||||||
picat
|
picat
|
||||||
spotdl
|
spotdl
|
||||||
davis
|
davis
|
||||||
|
|||||||
50
common/newsboat.nix
Normal file
50
common/newsboat.nix
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.newsboat = {
|
||||||
|
enable = false;
|
||||||
|
urls = [
|
||||||
|
{
|
||||||
|
title = "r/rust";
|
||||||
|
url = "https://www.reddit.com/r/rust/.rss";
|
||||||
|
tags = [ "rust" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "the square planet";
|
||||||
|
url = "https://thesquareplanet.com/feed.xml";
|
||||||
|
tags = [ "rust" ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
title = "Jon Gjengset's YouTube";
|
||||||
|
url =
|
||||||
|
"https://www.youtube.com/feeds/videos.xml?channel_id=UC_iD0xppBwwsrM9DegC5cQQ";
|
||||||
|
tags = [ "rust" "youtube" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
extraConfig =
|
||||||
|
let
|
||||||
|
dracula = builtins.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/dracula/newsboat/main/newsboat";
|
||||||
|
sha256 = "sha256:08b00ilc5zk5fkzqqd6aghcpya3d00s9kvv65b8c50rg7ikm88xr";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
''
|
||||||
|
include ${dracula}
|
||||||
|
unbind-key g
|
||||||
|
bind-key g home
|
||||||
|
unbind-key G
|
||||||
|
bind-key G end
|
||||||
|
|
||||||
|
unbind-key h
|
||||||
|
unbind-key j
|
||||||
|
unbind-key k
|
||||||
|
unbind-key l
|
||||||
|
|
||||||
|
bind-key h quit
|
||||||
|
bind-key j down
|
||||||
|
bind-key k up
|
||||||
|
bind-key l open
|
||||||
|
'';
|
||||||
|
browser = "${pkgs.handlr-xdg}/bin/xdg-open";
|
||||||
|
maxItems = 50;
|
||||||
|
autoReload = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
},
|
},
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
clangd.enable = true;
|
||||||
lua-language-server.enable = true;
|
lua-language-server.enable = true;
|
||||||
jsonls.enable = true;
|
jsonls.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [ ../modules/tuifeed.nix ];
|
imports = [ ../modules/tuifeed.nix ];
|
||||||
programs.tuifeed = {
|
programs.tuifeed = {
|
||||||
enable = true;
|
enable = false;
|
||||||
config = {
|
config = {
|
||||||
sources = {
|
sources = {
|
||||||
"r/rust" = "https://www.reddit.com/r/rust/.rss";
|
"r/rust" = "https://www.reddit.com/r/rust/.rss";
|
||||||
|
|||||||
@@ -54,4 +54,9 @@ in
|
|||||||
rev = "v1.0";
|
rev = "v1.0";
|
||||||
sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw";
|
sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw";
|
||||||
};
|
};
|
||||||
|
newsboat = mkCatppuccin {
|
||||||
|
item = "newsboat";
|
||||||
|
rev = "main";
|
||||||
|
sha256 = "sha256-czvR3bVZ0NfBmuu0JixalS7B1vf1uEGSTSUVVTclKxI";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user