feat(home-manager): add support for newsboat (#217)

This commit is contained in:
Xelden 2024-06-10 21:00:51 +00:00 committed by GitHub
parent 81297f18f1
commit 85558d1638
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 0 deletions

View file

@ -264,6 +264,18 @@
"url": "https://github.com/catppuccin/mpv/archive/6cbc49a38f23a4c3f3dc816e1d43389ca9675c1b.tar.gz",
"hash": "0kmwd1lqk3sa2ixh69k3qnvns998jp3hpbbb5pfq8k9qr9yp3rlv"
},
"newsboat": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "catppuccin",
"repo": "newsboat"
},
"branch": "main",
"revision": "be3d0ee1ba0fc26baf7a47c2aa7032b7541deb0f",
"url": "https://github.com/catppuccin/newsboat/archive/be3d0ee1ba0fc26baf7a47c2aa7032b7541deb0f.tar.gz",
"hash": "04ib4lvma5959n943f7myzbc2blmb8n2dd7bkb0xgl2rnpfx2fvk"
},
"nvim": {
"type": "Git",
"repository": {

View file

@ -22,6 +22,7 @@
./kitty.nix
./kvantum.nix
./lazygit.nix
./newsboat.nix
./mako.nix
./micro.nix
./mpv.nix

View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.newsboat.catppuccin;
enable = cfg.enable && config.programs.newsboat.enable;
theme = if cfg.flavor == "latte" then "latte" else "dark";
in
{
options.programs.newsboat.catppuccin = lib.ctp.mkCatppuccinOpt "newsboat";
config = lib.mkIf enable {
programs.newsboat.extraConfig = builtins.readFile "${sources.newsboat}/themes/${theme}";
};
}

View file

@ -101,6 +101,7 @@ testers.runNixOSTest {
micro = enable;
mpv = enable;
neovim = enable;
newsboat = enable;
rio = enable;
rofi = enable;
skim = enable;