mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 04:26:13 +01:00
bf78a7d618
Signed-off-by: magic_rb <magic_rb@redalder.org>
39 lines
746 B
Nix
39 lines
746 B
Nix
{
|
|
inputs',
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
flip
|
|
mapAttrs
|
|
filterAttrs
|
|
const
|
|
;
|
|
in {
|
|
nix.registry =
|
|
flip mapAttrs (filterAttrs (n: const (n != "nixpkgs")) inputs')
|
|
(
|
|
n: flake: {inherit flake;}
|
|
);
|
|
nix.settings = {
|
|
substituters = [
|
|
"https://cache.nixos.org/"
|
|
# "https://hydra.redalder.org/"
|
|
];
|
|
trusted-public-keys = [
|
|
"redalder-nix-cache-1:8t4zBJWgVtrfAOJ45iNHEqA/dDFV47Sr1sGa8ME9ru0="
|
|
];
|
|
experimental-features =
|
|
[
|
|
"flakes"
|
|
"nix-command"
|
|
"ca-derivations"
|
|
"recursive-nix"
|
|
"dynamic-derivations"
|
|
]
|
|
++ (lib.optional (lib.versionAtLeast config.nix.package.version "2.24") "pipe-operators");
|
|
};
|
|
}
|