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:
parent
af119feb17
commit
a9f496ead9
15 changed files with 205 additions and 48 deletions
14
tests/modules/services/ssh-agent/darwin/bash-integration.nix
Normal file
14
tests/modules/services/ssh-agent/darwin/bash-integration.nix
Normal 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'
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue