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