Merge pull request #126 from alois31/assertion-hotfix

nixos: Fix collision detection logic
This commit is contained in:
Kim Lindberger 2023-04-23 18:46:51 +02:00 committed by GitHub
commit df1692e2d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -686,10 +686,10 @@ in
'';
}
{
assertion = duplicates (catAttrs "file" files) == [ ];
assertion = duplicates (catAttrs "filePath" files) == [ ];
message =
let
offenders = duplicates (catAttrs "file" files);
offenders = duplicates (catAttrs "filePath" files);
in
''
environment.persistence:
@ -699,10 +699,10 @@ in
'';
}
{
assertion = duplicates (catAttrs "directory" directories) == [ ];
assertion = duplicates (catAttrs "dirPath" directories) == [ ];
message =
let
offenders = duplicates (catAttrs "directory" directories);
offenders = duplicates (catAttrs "dirPath" directories);
in
''
environment.persistence: