1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-30 21:59:49 +01:00
home-manager/tests/modules/files/target-conflict.nix

25 lines
505 B
Nix
Raw Normal View History

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