1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

ssh-agent: add assertion and fix news entry (#4210)

See https://github.com/nix-community/home-manager/pull/4178#discussion_r1249460142

Signed-off-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
Sumner Evans 2023-07-10 08:37:49 -06:00 committed by GitHub
parent b70db52ff0
commit a6d1d954b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -1138,7 +1138,7 @@ in
{
time = "2023-06-30T14:46:22+00:00";
condition = config.services.ssh-agent.enable;
condition = hostPlatform.isLinux;
message = ''
A new module is available: 'services.ssh-agent'
'';

View file

@ -14,6 +14,11 @@ in {
};
config = lib.mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "services.ssh-agent" pkgs
lib.platforms.linux)
];
home.sessionVariablesExtra = ''
if [[ -z "$SSH_AUTH_SOCK" ]]; then
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent