1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00

ssh-agent: add macOS support

This commit is contained in:
XYenon 2025-11-06 14:10:26 +08:00
parent af119feb17
commit a9f496ead9
15 changed files with 205 additions and 48 deletions

View file

@ -0,0 +1,14 @@
{
services.ssh-agent = {
enable = true;
enableBashIntegration = true;
};
programs.bash.enable = true;
nmt.script = ''
assertFileContains \
home-files/.bashrc \
'export SSH_AUTH_SOCK=$(@getconf-system_cmds@/bin/getconf DARWIN_USER_TEMP_DIR)/ssh-agent'
'';
}