1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/ssh/extra-config-no-default-host.nix
2025-08-26 17:12:13 -05:00

14 lines
318 B
Nix

{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
extraConfig = ''
MyExtraOption no
AnotherOption 3
'';
};
test.asserts.assertions.expected = [
''Cannot set `programs.ssh.extraConfig` if `programs.ssh.matchBlocks."*"` (default host config) is not declared.''
];
}