aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/ssh/default-config.nix
blob: 6d7e5508a2fc986184f4be562e90da57b4957d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}
    '';
  };
}