mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: put builtin in scope when needed
This commit is contained in:
parent
d7d55059ce
commit
8271aea4ba
9 changed files with 38 additions and 34 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue