forked from fabian/nix
		
	modularize zsh
This commit is contained in:
		
							parent
							
								
									a5db281643
								
							
						
					
					
						commit
						4ec61784ed
					
				
					 5 changed files with 22 additions and 7 deletions
				
			
		|  | @ -12,5 +12,6 @@ | ||||||
|     ./yubikey.nix |     ./yubikey.nix | ||||||
|     ./browsers.nix |     ./browsers.nix | ||||||
|     ./gui |     ./gui | ||||||
|  |     ./zsh | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -34,12 +34,6 @@ in { | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     programs.zsh = { |  | ||||||
|       enable = true; |  | ||||||
|       syntaxHighlighting.enable = true; |  | ||||||
|       initExtra = import ./zshrc.nix pkgs; |  | ||||||
|     }; |  | ||||||
| 
 |  | ||||||
|     programs.git = { |     programs.git = { | ||||||
|       enable = true; |       enable = true; | ||||||
|       userEmail = "fabian@posixlycorrect.com"; |       userEmail = "fabian@posixlycorrect.com"; | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								home/modules/zsh/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								home/modules/zsh/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | ||||||
|  | { | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   pkgs, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | with lib; let | ||||||
|  |   cfg = config.local.services.zsh; | ||||||
|  | in { | ||||||
|  |   options.local.services.zsh.enable = mkEnableOption "zsh settings"; | ||||||
|  |   config = mkIf cfg.enable { | ||||||
|  |     programs.zsh = { | ||||||
|  |       enable = true; | ||||||
|  |       syntaxHighlighting.enable = true; | ||||||
|  |       initExtra = import ./zshrc.nix pkgs; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -83,7 +83,7 @@ | ||||||
|   alias tree='tree -CF' |   alias tree='tree -CF' | ||||||
|   alias lock="betterlockscreen -l" |   alias lock="betterlockscreen -l" | ||||||
|   alias nightmode="${redshift}/bin/redshift -P -O 1000" |   alias nightmode="${redshift}/bin/redshift -P -O 1000" | ||||||
|   alias lightmode="${redshift}/bin/redshift -P -O 6500" |   alias lightmode="${redshift}/bin/redshift -x=" | ||||||
|   alias inbox="echo >> $HOME/gtd/inbox" |   alias inbox="echo >> $HOME/gtd/inbox" | ||||||
|   alias nixoide="nix repl '<nixpkgs>'" |   alias nixoide="nix repl '<nixpkgs>'" | ||||||
|   alias vps="ssh -A vps" |   alias vps="ssh -A vps" | ||||||
|  | @ -43,6 +43,8 @@ | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   local.services.zsh.enable = true; | ||||||
|  | 
 | ||||||
|   home = { |   home = { | ||||||
|     stateVersion = "21.11"; # No tocar esto |     stateVersion = "21.11"; # No tocar esto | ||||||
|     username = "fabian"; |     username = "fabian"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue