Move newsboat configuration
This commit is contained in:
		
							parent
							
								
									39392dcc5a
								
							
						
					
					
						commit
						90aaabeed6
					
				
					 6 changed files with 32 additions and 45 deletions
				
			
		|  | @ -2,8 +2,6 @@ | |||
| 
 | ||||
| { | ||||
|   homeManagerModules = { | ||||
|     newsboat.enable = true; | ||||
| 
 | ||||
|     notes = { | ||||
|       enable = true; | ||||
|       directory = "$HOME/Documents/wiki/notes"; | ||||
|  |  | |||
|  | @ -25,6 +25,8 @@ | |||
| 
 | ||||
|     ../common | ||||
|     ../../users/opdavies | ||||
| 
 | ||||
|     ./modules/newsboat | ||||
|   ]; | ||||
| 
 | ||||
|   nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; | ||||
|  |  | |||
							
								
								
									
										30
									
								
								hosts/t480/modules/newsboat/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								hosts/t480/modules/newsboat/default.nix
									
										
									
									
									
										Normal 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; | ||||
|   }; | ||||
| } | ||||
|  | @ -4,7 +4,6 @@ | |||
|   imports = [ | ||||
|     ./bin | ||||
|     ./git.nix | ||||
|     ./newsboat | ||||
|     ./notes.nix | ||||
|     ./starship.nix | ||||
|     ./tmux.nix | ||||
|  |  | |||
|  | @ -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; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue