home: move around things a bit
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		
							
								
								
									
										9
									
								
								home/common/laptop.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								home/common/laptop.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  options.isLaptop = lib.mkOption {
 | 
			
		||||
    type = lib.types.bool;
 | 
			
		||||
    default = false;
 | 
			
		||||
    example = true;
 | 
			
		||||
    description = "Whether this device is a laptop or not";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										8
									
								
								home/common/programs.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								home/common/programs.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
{ config, ... }:
 | 
			
		||||
{
 | 
			
		||||
  programs = {
 | 
			
		||||
    home-manager.enable = true;
 | 
			
		||||
    password-store.enable = true;
 | 
			
		||||
    direnv.enable = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										24
									
								
								home/common/zsh.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								home/common/zsh.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    autocd = true;
 | 
			
		||||
    history = rec {
 | 
			
		||||
      expireDuplicatesFirst = true;
 | 
			
		||||
      size = 30000;
 | 
			
		||||
      save = size;
 | 
			
		||||
    };
 | 
			
		||||
    autosuggestion.enable = true;
 | 
			
		||||
    enableCompletion = true;
 | 
			
		||||
    syntaxHighlighting.enable = true;
 | 
			
		||||
    prezto = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      prompt.theme = "pure";
 | 
			
		||||
      autosuggestions.color = "fg=yellow,bold";
 | 
			
		||||
      utility.safeOps = false;
 | 
			
		||||
    };
 | 
			
		||||
    initExtra = ''
 | 
			
		||||
      unsetopt extendedGlob
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user