From 01f133f92f23a67f8ba440d9bae41359ff220eb9 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 20 Jan 2025 23:05:28 +0900 Subject: [PATCH] feat: add newsboat configuration --- applications/newsboat/default.nix | 24 ++++++++++++++++++++++++ homes/common.nix | 1 + 2 files changed, 25 insertions(+) create mode 100644 applications/newsboat/default.nix diff --git a/applications/newsboat/default.nix b/applications/newsboat/default.nix new file mode 100644 index 00000000..11427d6e --- /dev/null +++ b/applications/newsboat/default.nix @@ -0,0 +1,24 @@ +{ + inputs, + ... +}: +let + miniflux-port = + inputs.self.outputs.nixosConfigurations.manyara.config.services.miniflux.config.PORT; +in +{ + programs.newsboat = { + enable = true; + autoReload = true; + extraConfig = '' + urls-source "miniflux" + miniflux-url "http://manyara:${miniflux-port}" + miniflux-login "natsukium" + miniflux-passwordeval "rbw get miniflux" + reload-threads 8 + + bind-key j next + bind-key k prev + ''; + }; +} diff --git a/homes/common.nix b/homes/common.nix index 558b7410..2d08c483 100644 --- a/homes/common.nix +++ b/homes/common.nix @@ -36,6 +36,7 @@ in ../applications/gitui ../applications/lazygit ../applications/misc + ../applications/newsboat ../applications/nix ../applications/nushell ../applications/rbw