nixos-configs/overlays/nix-version/default.nix

27 lines
575 B
Nix
Raw Normal View History

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 {
2024-12-10 22:28:26 -05:00
inherit nix;
};
2024-12-10 22:28:26 -05:00
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;
};
};
}