use emacsUnstable (27)
This commit is contained in:
		
							parent
							
								
									3ae2b02e8f
								
							
						
					
					
						commit
						1f0f282e76
					
				
					 1 changed files with 25 additions and 7 deletions
				
			
		|  | @ -1,23 +1,41 @@ | ||||||
| { config, pkgs, lib, ... }: | { config, pkgs, lib, ... }: | ||||||
| with lib; | with lib; | ||||||
| { | { | ||||||
|   options.programs.emacs.useGit = mkOption { |   options = { | ||||||
|     description = "Use emacs from git"; |     programs.emacs.useGit = mkOption { | ||||||
|     type = types.bool; |       description = "Use emacs from git"; | ||||||
|     default = false; |       type = types.bool; | ||||||
|  |       default = false; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     programs.emacs.useUnstable = mkOption { | ||||||
|  |       description = "Use emacs unstable"; | ||||||
|  |       type = types.bool; | ||||||
|  |       default = false; | ||||||
|  |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   config = { |   config = { | ||||||
|     nixpkgs.overlays = if config.programs.emacs.useGit then [] else [ |     nixpkgs.overlays = [ | ||||||
|       (import (builtins.fetchTarball https://github.com/nix-community/emacs-overlay/archive/master.tar.gz)) |       (import (builtins.fetchTarball { | ||||||
|  |         url = "https://github.com/nix-community/emacs-overlay/archive/54afb061bdd12c61bbfcc13bad98b7a3aab7d8d3.tar.gz"; | ||||||
|  |         sha256 = "0hrbg65d5h0cb0nky7a46md7vlvhajq1hf0328l2f7ln9hznqz6j"; | ||||||
|  |       })) | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     environment.systemPackages = with pkgs; [ |     environment.systemPackages = with pkgs; [ | ||||||
|       (if config.programs.emacs.useGit then emacsGit else emacs) |       (if config.programs.emacs.useGit | ||||||
|  |        then emacsGit | ||||||
|  |        else | ||||||
|  |          if config.programs.emacs.useUnstable | ||||||
|  |          then emacsUnstable | ||||||
|  |          else emacs) | ||||||
|       ripgrep |       ripgrep | ||||||
|       coreutils |       coreutils | ||||||
|       fd |       fd | ||||||
|       clang |       clang | ||||||
|     ]; |     ]; | ||||||
|  | 
 | ||||||
|  |     programs.emacs.useUnstable = true; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue