From e58fc6016a595b997e6e27f604f4c417d1caf62b Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 1 Dec 2024 22:17:17 -0500 Subject: [PATCH] Users: create script to run ssh-agent (yeah, still trying to solve this...) --- modules/users/aires/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/users/aires/default.nix b/modules/users/aires/default.nix index 500a861..f11baf4 100644 --- a/modules/users/aires/default.nix +++ b/modules/users/aires/default.nix @@ -101,7 +101,13 @@ in }; # Run the SSH agent on login - services.ssh-agent.enable = true; + systemd.user.services."ssh-agent" = { + Unit.Description = "Manually starts the SSH agent."; + Service.ExecStart = '' + eval "$(ssh-agent -s)" + ''; + Install.WantedBy = [ "multi-user.target" ]; # starts after login + }; }; }