Revert "nix: put builtin in scope when needed"

I don't know where I got this anti-pattern. It makes the LSP unable to
figure out which bindings are unbound
This commit is contained in:
Léana 江 2024-04-14 18:09:33 +02:00 committed by Léana 江
parent 082ebfb772
commit 74689b460e
9 changed files with 34 additions and 38 deletions

View file

@ -6,7 +6,6 @@
flake-utils,
...
}@inputs:
with builtins;
let
mkArgs =
system:
@ -16,7 +15,7 @@ let
inherit system;
config.allowUnfreePredicate =
pkg:
elem (nixpkgs.lib.getName pkg) [
builtins.elem (nixpkgs.lib.getName pkg) [
"discord"
"languagetool"
];
@ -148,7 +147,7 @@ let
];
};
many = func: mapAttrs (name: opts: func name (opts.system) (opts.settings or { }));
many = func: builtins.mapAttrs (name: opts: func name (opts.system) (opts.settings or { }));
in
{
mkNixOSes = many mkNixOS;