[Nix] add tarballs.nixos.org and nixpkgs-unfree to hashed-mirrors

This commit is contained in:
Antoine Viallon 2023-12-26 17:56:26 +01:00
parent 8a0389c350
commit 4f023b66c5
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -112,6 +112,8 @@ in
nix.settings.cores = mkIf (generalCfg.cpu.threads != null) generalCfg.cpu.threads;
nix.settings.max-jobs = mkIf (generalCfg.cpu.threads != null) (math.log2 generalCfg.cpu.threads);
nix.settings.hashed-mirrors = [ "https://tarballs.nixos.org" "https://nixpkgs-unfree.cachix.org" ];
nix.registry = {
nixpkgs.flake = nixpkgs;
nixpkgs-unstable.flake = nixpkgs-unstable;