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:
parent
b70db52ff0
commit
a6d1d954b8
2 changed files with 6 additions and 1 deletions
|
@ -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'
|
||||
'';
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue