lib/pathsToImportedAttrs: discard string context in the names to prevent flake check error
This commit is contained in:
parent
4f38a88191
commit
68a5a2eecf
|
@ -21,7 +21,9 @@ rec {
|
||||||
paths' = lib.filter (lib.hasSuffix ".nix") paths;
|
paths' = lib.filter (lib.hasSuffix ".nix") paths;
|
||||||
in
|
in
|
||||||
genAttrs' paths' (path: {
|
genAttrs' paths' (path: {
|
||||||
name = lib.removeSuffix ".nix" (baseNameOf path);
|
name = lib.removeSuffix ".nix"
|
||||||
|
# Safe as long this is just used as a name
|
||||||
|
(builtins.unsafeDiscardStringContext (baseNameOf path));
|
||||||
value = import path;
|
value = import path;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue