This commit is contained in:
2026-06-19 18:28:22 +09:00
parent 322a5fe6be
commit f62e4077ea
7 changed files with 71 additions and 25 deletions
+2 -8
View File
@@ -20,16 +20,10 @@ in
pkgs.openssh
];
systemd.user.services.ssh-agent = {
Unit.Description = "OpenSSH authentication agent";
Service = {
ExecStart = "${pkgs.openssh}/bin/ssh-agent -D -a %t/ssh-agent";
};
Install.WantedBy = [ "default.target" ];
};
systemd.user.sockets.gcr-ssh-agent.Install.WantedBy = lib.mkForce [ ];
services.ssh-agent.enable = true;
home.sessionVariables = {
SSH_AUTH_SOCK = "\${XDG_RUNTIME_DIR}/ssh-agent";
};
+3
View File
@@ -16,5 +16,8 @@ in
environment.systemPackages = with pkgs; [
openssh # OpenSSH client and server
];
programs.ssh.startAgent = true;
services.gnome.gcr-ssh-agent.enable = false;
};
}