depot/third_party/home-manager/tests/modules/programs/ssh/includes.nix

16 lines
301 B
Nix
Raw Normal View History

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