home-manager/tests/modules/files/target-conflict.nix

25 lines
505 B
Nix
Raw Normal View History

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