nix: put builtin in scope when needed

This commit is contained in:
Léana 江 2024-04-06 13:50:33 +02:00 committed by Léana 江
parent d7d55059ce
commit 8271aea4ba
9 changed files with 38 additions and 34 deletions

View file

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