ops/nixos/lib/common: add the binary cache credentials to nix.envVars
This commit is contained in:
parent
3b268f67c6
commit
190606746c
1 changed files with 5 additions and 1 deletions
|
@ -12,8 +12,12 @@ in
|
|||
nix = {
|
||||
nixPath = [ "depot=/home/lukegb/depot/" "nixpkgs=/home/lukegb/depot/third_party/nixpkgs/" ];
|
||||
trustedUsers = [ "root" "@wheel" ];
|
||||
binaryCaches = lib.mkForce [ "https://cache.nixos.org/" ];
|
||||
binaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ];
|
||||
trustedBinaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ];
|
||||
envVars = {
|
||||
AWS_ACCESS_KEY_ID = "${depot.ops.secrets.nixCache.AWS_ACCESS_KEY_ID}";
|
||||
AWS_SECRET_ACCESS_KEY = "${depot.ops.secrets.nixCache.AWS_SECRET_ACCESS_KEY}";
|
||||
};
|
||||
};
|
||||
nixpkgs.config = depot.third_party.nixpkgsConfig;
|
||||
|
||||
|
|
Loading…
Reference in a new issue