Improved zsh and migrate ssh

This commit is contained in:
2024-07-25 22:34:05 -04:00
parent 1945dbbdda
commit af2c3219ce
7 changed files with 43 additions and 50 deletions

View 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
'';
};
}