aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/files/hidden-source.nix
blob: 8169fedcd7fcfe9e4ffff31462f2495fc01d60a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, ... }:

with lib;

{
  config = {
    home.file.".hidden".source = ./.hidden;

    nmt.script = ''
      assertFileExists home-files/.hidden;
      assertFileContent home-files/.hidden ${
        builtins.path {
          path = ./.hidden;
          name = "expected";
        }
      }
    '';
  };
}