diff options
Diffstat (limited to 'infra/libkookie/home-manager/tests/modules/programs/ssh/default-config.nix')
-rw-r--r-- | infra/libkookie/home-manager/tests/modules/programs/ssh/default-config.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/tests/modules/programs/ssh/default-config.nix b/infra/libkookie/home-manager/tests/modules/programs/ssh/default-config.nix new file mode 100644 index 000000000000..6d7e5508a2fc --- /dev/null +++ b/infra/libkookie/home-manager/tests/modules/programs/ssh/default-config.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +with lib; + +{ + config = { + programs.ssh = { enable = true; }; + + home.file.assertions.text = builtins.toJSON + (map (a: a.message) (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} + ''; + }; +} |