From a87c2cacff420e6f89b45559964e48d944fd7e55 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 21 Jan 2025 10:02:40 -0500 Subject: [PATCH] global/ssh: setup ssh-agent, remove keychain --- users/modules/global/keychain.nix | 11 ----------- users/modules/global/ssh.nix | 3 +++ 2 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 users/modules/global/keychain.nix diff --git a/users/modules/global/keychain.nix b/users/modules/global/keychain.nix deleted file mode 100644 index 018b010..0000000 --- a/users/modules/global/keychain.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, ... }: -{ - services.ssh-agent.enable = true; - - programs.keychain = { - enable = true; - inheritType = "any"; - extraFlags = [ "--quiet" "--quick" "--systemd" "--dir ${config.xdg.configHome}/keychain" "--agents \"\"" ]; - keys = [ "id_ed25519" ]; - }; -} diff --git a/users/modules/global/ssh.nix b/users/modules/global/ssh.nix index b677070..7a49614 100644 --- a/users/modules/global/ssh.nix +++ b/users/modules/global/ssh.nix @@ -2,6 +2,7 @@ { programs.ssh = { enable = true; + addKeysToAgent = "yes"; controlMaster = "auto"; controlPersist = "1m"; matchBlocks = { @@ -10,4 +11,6 @@ }; }; }; + + services.ssh-agent.enable = true; }