feat: improve SSH configuration and cleanup unused keys
- Commented out default SSH service enablement in common suite. - Updated SSH agent configuration to use dynamic user paths. - Removed outdated SSH keys and added missing key descriptions.
This commit is contained in:
parent
37277447d3
commit
949e39cdba
3 changed files with 12 additions and 6 deletions
|
@ -19,15 +19,22 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ openssh ];
|
||||
|
||||
#environment.shellInit = ''
|
||||
# export SSH_AUTH_SOCK="$HOME/.ssh/ssh-agent.sock"
|
||||
#'';
|
||||
|
||||
launchd.user.agents.ssh-agent.serviceConfig = {
|
||||
EnvironmentVariables.SSH_AUTH_SOCK = "/Users/harald/.ssh/ssh-agent.sock";
|
||||
Label = "ssh-agent";
|
||||
EnvironmentVariables.SSH_AUTH_SOCK = "/Users/${config.metacfg.user.name}/.ssh/ssh-agent.sock";
|
||||
ProgramArguments = [
|
||||
"${pkgs.openssh}/bin/ssh-agent"
|
||||
"-s"
|
||||
"-a"
|
||||
"/Users/${config.metacfg.user.name}/.ssh/ssh-agent.sock"
|
||||
"-D"
|
||||
];
|
||||
RunAtLoad = true;
|
||||
#KeepAlive.SuccessfulExit = true;
|
||||
KeepAlive.SuccessfulExit = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue