nix: refactored overlays

This commit is contained in:
Léana 江 2024-04-21 21:38:25 +02:00 committed by Léana 江
parent f380d20530
commit fa6e8926f1
2 changed files with 7 additions and 22 deletions

View file

@ -12,7 +12,13 @@ let
let
pkgs = import nixpkgs {
inherit system;
overlays = [ (_: _: import ./overlays.nix inputs system) ];
overlays = [
(
_: prev:
# extend pkgs with other inputs
prev.lib.mapAttrs (name: input: input.packages.${system}.default) inputs
)
];
config.allowUnfreePredicate =
pkg:
builtins.elem (nixpkgs.lib.getName pkg) [