home-manager/tests/modules/files/source-with-spaces.nix

17 lines
370 B
Nix
Raw Normal View History

2023-05-12 22:08:12 +00:00
{ ... }:
{
2023-05-12 22:08:12 +00:00
home.file."source with spaces!".source = ./. + "/source with spaces!";
2023-05-12 22:08:12 +00:00
nmt.script = ''
assertFileExists 'home-files/source with spaces!';
assertFileContent 'home-files/source with spaces!' \
${
builtins.path {
path = ./. + "/source with spaces!";
name = "source-with-spaces-expected";
}
2023-05-12 22:08:12 +00:00
}
'';
}