1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

tests/ssh-agent: add test coverage

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-07-14 22:00:48 -05:00
parent 85a5287116
commit cec4c1be7e
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,9 @@
[Install]
WantedBy=default.target
[Service]
ExecStart=@openssh@/bin/ssh-agent -D -a %t/ssh-agent
[Unit]
Description=SSH authentication agent
Documentation=man:ssh-agent(1)

View file

@ -0,0 +1,15 @@
{ config, ... }:
{
config = {
services.ssh-agent = {
enable = true;
};
nmt.script = ''
assertFileContent \
home-files/.config/systemd/user/ssh-agent.service \
${./basic-service-expected.service}
'';
};
}

View file

@ -0,0 +1,5 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
ssh-agent-basic-service = ./basic-service.nix;
}