lib: replace uniqueStrings after upstreamed

This commit is contained in:
Johannes Kirschbauer
2025-10-27 14:00:46 +01:00
parent 33115f76b7
commit bfb30251e6
3 changed files with 3 additions and 11 deletions

View File

@@ -7,14 +7,10 @@
...
}:
let
inherit (lib) mkOption types;
inherit (lib) mkOption types uniqueStrings;
inherit (types) attrsWith submoduleWith;
errorContext = "Error context: ${lib.concatStringsSep "." _ctx}";
# TODO:
# Remove once this gets merged upstream; performs in O(n*log(n) instead of O(n^2))
# https://github.com/NixOS/nixpkgs/pull/355616/files
uniqueStrings = list: builtins.attrNames (builtins.groupBy lib.id list);
/**
Merges the role- and machine-settings using the role interface