Move newsboat configuration

This commit is contained in:
Oliver Davies 2025-04-05 09:50:53 +01:00
parent 39392dcc5a
commit 90aaabeed6
6 changed files with 32 additions and 45 deletions

View file

@ -2,8 +2,6 @@
{
homeManagerModules = {
newsboat.enable = true;
notes = {
enable = true;
directory = "$HOME/Documents/wiki/notes";

View file

@ -25,6 +25,8 @@
../common
../../users/opdavies
./modules/newsboat
];
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];

View file

@ -0,0 +1,30 @@
{
home-manager.users.opdavies.programs.newsboat = {
enable = true;
extraConfig = ''
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key g home
bind-key G end
bind-key d pagedown
bind-key u pageup
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key x pb-delete
color info white black bold
'';
urls = import ./urls.nix;
};
}

View file

@ -4,7 +4,6 @@
imports = [
./bin
./git.nix
./newsboat
./notes.nix
./starship.nix
./tmux.nix

View file

@ -1,42 +0,0 @@
{
config,
lib,
...
}:
with lib;
{
options.homeManagerModules.newsboat.enable = mkEnableOption "Enable newsboat";
config = mkIf config.homeManagerModules.newsboat.enable {
programs.newsboat = {
enable = true;
extraConfig = ''
bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key g home
bind-key G end
bind-key d pagedown
bind-key u pageup
bind-key a toggle-article-read
bind-key n next-unread
bind-key N prev-unread
bind-key x pb-delete
color info white black bold
'';
urls = import ./urls.nix;
};
};
}