1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/ssh/forwards-remote-host-path-with-port-asserts.nix
2025-08-26 17:12:13 -05:00

25 lines
556 B
Nix

{
config = {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
remoteHostPathWithPort = {
remoteForwards = [
{
# OK:
bind.address = "127.0.0.1";
bind.port = 3000;
# Error:
host.address = "/run/user/1000/gnupg/S.gpg-agent.extra";
host.port = 3000;
}
];
};
};
};
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
};
}