From 7edf0a82a1b1fe0530e8b8c74951cefd9ba64a5f Mon Sep 17 00:00:00 2001 From: Aria Nolan Date: Fri, 26 Jan 2024 16:09:41 -0500 Subject: [PATCH] use ssh startAgent option --- modules/nixos-common.nix | 2 ++ users/tacocat/shell/bash.nix | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/nixos-common.nix b/modules/nixos-common.nix index e97c6d6..09515dc 100644 --- a/modules/nixos-common.nix +++ b/modules/nixos-common.nix @@ -175,6 +175,8 @@ programs.gamemode.enable = true; # programs.gamescope.enable = true; + programs.ssh.startAgent = true; + xdg.portal = { enable = true; wlr.enable = true; diff --git a/users/tacocat/shell/bash.nix b/users/tacocat/shell/bash.nix index 91c773a..7e5b38e 100644 --- a/users/tacocat/shell/bash.nix +++ b/users/tacocat/shell/bash.nix @@ -8,13 +8,6 @@ PS1='[\u@\h \W]\$ ' ''; - - profileExtra = '' - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/git_school - ssh-add ~/.ssh/git_personal - ssh-add ~/.ssh/id_ed25519 - ''; sessionVariables = { _JAVA_AWT_WM_NONREPARENTING = 1; };