1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-13 22:59:44 +01:00
home-manager/tests/modules/files/target-with-shellvar.nix
2023-05-13 00:09:52 +02:00

11 lines
240 B
Nix

{ ... }:
{
home.file."$HOME/$FOO/bar baz".text = "blah";
nmt.script = ''
assertFileExists 'home-files/$HOME/$FOO/bar baz';
assertFileContent 'home-files/$HOME/$FOO/bar baz' \
${builtins.toFile "expected" "blah"}
'';
}