From d7651d1af96e371a8740e32e9bac077b5029b108 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 1 May 2023 11:38:22 +0200 Subject: [PATCH] Add ssh-agent service --- home-manager.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home-manager.nix b/home-manager.nix index 1bf27ff..b5ca0ee 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -54,6 +54,22 @@ in ./home-manager/fish.nix ]; + systemd.user.services = { + service-name = { + Unit = { + Description = "SSH key agent"; + }; + Service = { + Type = "simple"; + Environment = "SSH_AUTH_SOCK=%t/ssh-agent.socket"; + ExecStart = "/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK"; + }; + Install = { + WantedBy = "default.target"; + }; + }; + }; + services.mako.enable = true; }; }