diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-03-04 15:02:31 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-03-04 15:02:31 -0800 |
| commit | e2f467882f9fd67805b69e5dff6c1652d4c47629 (patch) | |
| tree | 500206b90fe6d81b44a8a9cbe78d2fe5becafd1b /nix/profiles/home-manager/ssh.nix | |
| parent | create profiles for home-manager (diff) | |
| download | infra-e2f467882f9fd67805b69e5dff6c1652d4c47629.tar.gz | |
move all home-manager settings under the profiles
Diffstat (limited to 'nix/profiles/home-manager/ssh.nix')
| -rw-r--r-- | nix/profiles/home-manager/ssh.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nix/profiles/home-manager/ssh.nix b/nix/profiles/home-manager/ssh.nix new file mode 100644 index 0000000..47aee8a --- /dev/null +++ b/nix/profiles/home-manager/ssh.nix @@ -0,0 +1,21 @@ +{ ... }: +{ + programs.ssh = { + enable = true; + forwardAgent = true; + serverAliveInterval = 60; + controlMaster = "auto"; + controlPersist = "30m"; + extraConfig = '' + IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" + ''; + matchBlocks = { + "github.com" = { + hostname = "github.com"; + user = "git"; + forwardAgent = false; + extraOptions = { preferredAuthentications = "publickey"; }; + }; + }; + }; +} |
