diff --git a/dots/.config/newsboat/config b/dots/.config/newsboat/config deleted file mode 100644 index 29117f4..0000000 --- a/dots/.config/newsboat/config +++ /dev/null @@ -1,39 +0,0 @@ -auto-reload yes -reload-threads 100 - -# color background color240 black -# color listnormal color238 black -# color listfocus white black -# color listnormal_unread color240 black bold -# color listfocus_unread default black bold -# color info default black -# color article default black - -bind-key h quit articlelist -bind-key h quit article -bind-key h quit tagselection -bind-key h quit feedlist -bind-key j down feedlist -bind-key j down tagselection -bind-key j next articlelist -bind-key j down article -bind-key J next-feed articlelist -bind-key k up feedlist -bind-key k prev articlelist -bind-key k up tagselection -bind-key K prev-feed articlelist -bind-key k up article -bind-key l open articlelist -bind-key l open feedlist -bind-key l open tagselection - -bind-key G end -bind-key g home - -text-width 80 - -browser "brave" -macro m set browser "mpv %u"; open-in-browser ; set browser "brave" - -show-title-bar false -show-keymap-hint false diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index 8623ec5..24c521b 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -46,6 +46,7 @@ k8s.k9s.enable = true; keepassxc.enable = true; music.enable = true; + newsboat.enable = true; nvim.enable = true; pandoc.enable = true; photography.enable = true; diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index 7f0a666..fec3d9b 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -43,6 +43,7 @@ k8s.k9s.enable = true; keepassxc.enable = true; music.enable = true; + newsboat.enable = true; my.yubikey.enable = true; nfc.enable = true; nvim.enable = true; diff --git a/home/modules/newsboat/default.nix b/home/modules/newsboat/default.nix new file mode 100644 index 0000000..f6a6b04 --- /dev/null +++ b/home/modules/newsboat/default.nix @@ -0,0 +1,58 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.newsboat; +in +{ + options.newsboat.enable = lib.mkEnableOption "Newsboat"; + + config = lib.mkIf cfg.enable { + home.packages = [ pkgs.newsboat ]; + xdg.configFile."newsboat/config".text = '' + auto-reload yes + reload-threads 100 + + # color background color240 black + # color listnormal color238 black + # color listfocus white black + # color listnormal_unread color240 black bold + # color listfocus_unread default black bold + # color info default black + # color article default black + + bind-key h quit articlelist + bind-key h quit article + bind-key h quit tagselection + bind-key h quit feedlist + bind-key j down feedlist + bind-key j down tagselection + bind-key j next articlelist + bind-key j down article + bind-key J next-feed articlelist + bind-key k up feedlist + bind-key k prev articlelist + bind-key k up tagselection + bind-key K prev-feed articlelist + bind-key k up article + bind-key l open articlelist + bind-key l open feedlist + bind-key l open tagselection + + bind-key G end + bind-key g home + + text-width 80 + + browser "brave" + macro m set browser "mpv %u"; open-in-browser ; set browser "brave" + + show-title-bar false + show-keymap-hint false + ''; + }; +}