A new start
This commit is contained in:
		
						commit
						f4e2368893
					
				
					 93 changed files with 7621 additions and 0 deletions
				
			
		
							
								
								
									
										24
									
								
								modules/home/tools/ssh/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								modules/home/tools/ssh/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
{ lib, config, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) types mkEnableOption mkIf;
 | 
			
		||||
  cfg = config.metacfg.tools.ssh;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  options.metacfg.tools.ssh = {
 | 
			
		||||
    enable = mkEnableOption "SSH";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    home.packages = with pkgs; [
 | 
			
		||||
      mosh
 | 
			
		||||
    ];
 | 
			
		||||
    programs.ssh = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      extraConfig = ''
 | 
			
		||||
        Host *
 | 
			
		||||
          HostKeyAlgorithms +ssh-rsa
 | 
			
		||||
      '';
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue