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