aboutsummaryrefslogtreecommitdiff
path: root/nix/profiles/home-manager/ssh.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-04 15:02:31 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-04 15:02:31 -0800
commite2f467882f9fd67805b69e5dff6c1652d4c47629 (patch)
tree500206b90fe6d81b44a8a9cbe78d2fe5becafd1b /nix/profiles/home-manager/ssh.nix
parentcreate profiles for home-manager (diff)
downloadinfra-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.nix21
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"; };
+ };
+ };
+ };
+}