home/natto: move around stuff
move git and zsh from hosts/satori and split services.nix Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										33
									
								
								home/natto/zsh.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								home/natto/zsh.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,33 @@
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
let
 | 
			
		||||
  secretPath = "${config.home.homeDirectory}/.zshenv_secret";
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    autocd = true;
 | 
			
		||||
    history = rec {
 | 
			
		||||
      expireDuplicatesFirst = true;
 | 
			
		||||
      ignoreDups = true;
 | 
			
		||||
      size = 30000;
 | 
			
		||||
      save = size;
 | 
			
		||||
    };
 | 
			
		||||
    enableAutosuggestions = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
    enableSyntaxHighlighting = true;
 | 
			
		||||
    prezto = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      prompt.theme = "pure";
 | 
			
		||||
      autosuggestions.color = "fg=yellow,bold";
 | 
			
		||||
    };
 | 
			
		||||
    initExtra = ''
 | 
			
		||||
      . ${secretPath};
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  age.secrets.zshenv_secret = {
 | 
			
		||||
    file = ./secrets/.zshenv_secret;
 | 
			
		||||
    path = secretPath;
 | 
			
		||||
    mode = "660";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user