Improved zsh and migrate ssh
This commit is contained in:
23
home-manager-modules/ssh.nix
Normal file
23
home-manager-modules/ssh.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ssh;
|
||||
agentPath = "~/.1password/agent.sock";
|
||||
in
|
||||
{
|
||||
options = {
|
||||
ssh.enable = lib.mkEnableOption "enable ssh module";
|
||||
};
|
||||
|
||||
config.programs.ssh = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host *
|
||||
IdentityAgent ${agentPath}
|
||||
Host bromine
|
||||
HostName 192.168.1.200
|
||||
User mbessette
|
||||
ForwardAgent yes
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user