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