home-manager/tests/modules/files/text.nix

19 lines
337 B
Nix
Raw Permalink Normal View History

{ config, lib, ... }:
with lib;
{
config = {
home.file."using-text".text = ''
This is the
expected text.
'';
nmt.script = ''
assertFileExists home-files/using-text
assertFileIsNotExecutable home-files/using-text
assertFileContent home-files/using-text ${./text-expected.txt}
'';
};
}