1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-14 15:19:45 +01:00
home-manager/tests/modules/files/target-conflict.nix

27 lines
557 B
Nix
Raw Normal View History

{ ... }:
{
config = {
home.file = {
conflict1 = {
text = "";
target = "baz";
};
conflict2 = {
source = ./target-conflict.nix;
target = "baz";
};
};
test.asserts.assertions.expected = [''
Conflicting managed target files: baz
This may happen, for example, if you have a configuration similar to
home.file = {
conflict1 = { source = ./foo.nix; target = "baz"; };
conflict2 = { source = ./bar.nix; target = "baz"; };
}''];
};
}