1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
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}
'';
};
}