deploy: speed up by using caches

Specifying the Nix config file only work in the Nix Flakes branch for
the moment.

Load from both the nix-community and nixpkgs-update cached to speed-up
deployment.
This commit is contained in:
zimbatm 2020-08-07 19:51:08 +02:00
parent ddbaa6463d
commit b9135bd585
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 3 additions and 0 deletions

1
.envrc
View file

@ -1 +1,2 @@
export NIX_USER_CONF_FILES=$PWD/nix/nix.conf
use nix

2
nix/nix.conf Normal file
View file

@ -0,0 +1,2 @@
substituters = https://cache.nixos.org https://nix-community.cachix.org/ https://nixpkgs-update.cachix.org/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=