2.home-manager/tests/modules/programs/ssh/default-config.nix
2025-02-21 23:20:07 -06:00

14 lines
435 B
Nix

{ config, lib, ... }: {
config = {
programs.ssh = { enable = true; };
home.file.assertions.text = builtins.toJSON
(map (a: a.message) (lib.filter (a: !a.assertion) config.assertions));
nmt.script = ''
assertFileExists home-files/.ssh/config
assertFileContent home-files/.ssh/config ${./default-config-expected.conf}
assertFileContent home-files/assertions ${./no-assertions.json}
'';
};
}