refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		| 
						 | 
				
			
			@ -1,24 +0,0 @@
 | 
			
		|||
{ lib, config, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  cfg = config.homeModules.console.utility.ssh;
 | 
			
		||||
  hasFish = mkIf config.homeModules.console.shell.fish.enable;
 | 
			
		||||
  inherit (lib) mkIf;
 | 
			
		||||
in
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    programs.ssh = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      extraConfig = /* config */''
 | 
			
		||||
        Host *
 | 
			
		||||
            IdentityAgent "~/.1password/agent.sock"
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
    programs.fish.interactiveShellInit = hasFish ''
 | 
			
		||||
      set -gx SSH_AUTH_SOCK ~/.1password/agent.sock
 | 
			
		||||
    '';
 | 
			
		||||
  };
 | 
			
		||||
  
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue