add nixvim as default EDITOR
This commit is contained in:
		
							parent
							
								
									4cd7fe6cfd
								
							
						
					
					
						commit
						326bd3cb03
					
				
					 3 changed files with 21 additions and 8 deletions
				
			
		|  | @ -16,9 +16,22 @@ in | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     environment.systemPackages = with pkgs; [ |     environment = { | ||||||
|       less |       systemPackages = with pkgs; [ | ||||||
|       wyrdgard.neovim |         less | ||||||
|     ]; |         wyrdgard.neovim | ||||||
|  |       ]; | ||||||
|  |       variables = { | ||||||
|  |         EDITOR = "nvim"; | ||||||
|  |         SUDOEDITOR = "nvim"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     wyrdgard.home = { | ||||||
|  |       extraOptions = { | ||||||
|  |         # Use Neovim for Git diffs. | ||||||
|  |         programs.fish.shellAliases.vimdiff = "nvim -d"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -28,7 +28,7 @@ let | ||||||
|     pkgs.runCommandNoCC "propagated-icon" |     pkgs.runCommandNoCC "propagated-icon" | ||||||
|       { |       { | ||||||
|         passthru = { |         passthru = { | ||||||
|           fileName = cfg.icon.fileName; |           inherit (fileName); | ||||||
|         }; |         }; | ||||||
|       } |       } | ||||||
|       '' |       '' | ||||||
|  |  | ||||||
|  | @ -30,11 +30,11 @@ with lib.wyrdgard; | ||||||
|         time = "10:00"; |         time = "10:00"; | ||||||
|       }; |       }; | ||||||
|       hardware = { |       hardware = { | ||||||
|       bluetooth = enabled; |         bluetooth = enabled; | ||||||
|       gpu.nvidia = enabled; |         gpu.nvidia = enabled; | ||||||
|  |       }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|   }; |  | ||||||
| 
 | 
 | ||||||
|   system.stateVersion = "23.11"; |   system.stateVersion = "23.11"; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue