aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/files/target-with-shellvar.nix
blob: c54946eb9eba6e0d70c729f9aa2898cf6e315d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    home.file."$HOME/$FOO/bar baz".text = "blah";

    nmt.script = ''
      assertFileExists 'home-files/$HOME/$FOO/bar baz';
      assertFileContent 'home-files/$HOME/$FOO/bar baz' \
        ${pkgs.writeText "expected" "blah"}
    '';
  };
}