2023-06-11 23:09:59 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
inputs',
|
|
|
|
lib,
|
2024-11-09 17:05:11 +01:00
|
|
|
config,
|
2024-03-02 22:05:30 +01:00
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib)
|
|
|
|
flip
|
|
|
|
mapAttrs
|
2024-06-02 20:47:34 +02:00
|
|
|
filterAttrs
|
|
|
|
const
|
2024-03-02 22:05:30 +01:00
|
|
|
;
|
|
|
|
in {
|
2023-06-11 23:09:59 +02:00
|
|
|
nix.registry =
|
2024-06-02 20:47:34 +02:00
|
|
|
flip mapAttrs (filterAttrs (n: const (n != "nixpkgs")) inputs')
|
2024-03-02 22:05:30 +01:00
|
|
|
(
|
|
|
|
n: flake: {inherit flake;}
|
|
|
|
);
|
2023-06-11 23:09:59 +02:00
|
|
|
nix.settings = {
|
2023-11-19 12:28:10 +01:00
|
|
|
substituters = [
|
|
|
|
"https://cache.nixos.org/"
|
2024-02-11 01:24:52 +01:00
|
|
|
# "https://hydra.redalder.org/"
|
2023-11-19 12:28:10 +01:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"redalder-nix-cache-1:8t4zBJWgVtrfAOJ45iNHEqA/dDFV47Sr1sGa8ME9ru0="
|
|
|
|
];
|
2024-11-09 17:05:11 +01:00
|
|
|
experimental-features =
|
|
|
|
[
|
|
|
|
"flakes"
|
|
|
|
"nix-command"
|
|
|
|
"ca-derivations"
|
|
|
|
"recursive-nix"
|
|
|
|
"dynamic-derivations"
|
|
|
|
]
|
|
|
|
++ (lib.optional (lib.versionAtLeast config.nix.package.version "2.24") "pipe-operators");
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
}
|