home-manager/tests/modules/programs/ssh/includes.nix
2023-05-13 16:50:10 +02:00

17 lines
332 B
Nix

{ config, lib, pkgs, ... }:
{
config = {
programs.ssh = {
enable = true;
includes = [ "config.d/*" "other/dir" ];
};
test.stubs.openssh = { };
nmt.script = ''
assertFileExists home-files/.ssh/config
assertFileContains home-files/.ssh/config "Include config.d/* other/dir"
'';
};
}