dotfiles/nixos/common/nixpkgs.nix
magic_rb a4b2697d9b
Enable more experimental features of Nix globally
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-06 13:41:33 +01:00

29 lines
555 B
Nix

{
inputs',
lib,
...
}: let
inherit
(lib)
flip
mapAttrs
;
in {
nix.registry =
flip mapAttrs 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"];
};
nixpkgs.config.allowUnfree = true;
}