nixos-configs/overlays/nix-version/default.nix
matt1432 3cb4315fab
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(cache): move nix-fast-build-pkg to overlays
2024-12-11 11:42:40 -05:00

26 lines
575 B
Nix

self: {nix ? null}: final: prev: let
inherit (builtins) mapAttrs;
inherit (self.inputs) nix-eval-jobs nix-fast-build;
nullCheck = n: v:
if nix == null
then prev.${n}
else v;
in
mapAttrs nullCheck {
inherit nix;
nix-serve = prev.nix-serve-ng.override {
inherit nix;
};
nix-fast-build = nix-fast-build.packages.${final.system}.nix-fast-build.override {
nix-eval-jobs =
nix-eval-jobs.packages.${final.system}.default.override {
inherit nix;
}
// {
inherit nix;
};
};
}