1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 15:09:46 +01:00
home-manager/tests/modules/misc/xdg/file-attr-names.nix

27 lines
643 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
xdg.configFile.test.text = "config";
xdg.dataFile.test.text = "data";
home.file.test.text = "home";
nmt.script = ''
assertFileExists home-files/.config/test
assertFileExists home-files/.local/share/test
assertFileExists home-files/test
assertFileContent \
home-files/.config/test \
${builtins.toFile "test" "config"}
assertFileContent \
home-files/.local/share/test \
${builtins.toFile "test" "data"}
assertFileContent \
home-files/test \
${builtins.toFile "test" "home"}
'';
};
}