epyc: add android cache

This commit is contained in:
raito 2023-08-23 13:00:22 +02:00
parent 6eec25d2bb
commit 6228f5a2df
2 changed files with 14 additions and 0 deletions

View file

@ -10,6 +10,7 @@ in
../modules/iperf-server.nix ../modules/iperf-server.nix
../modules/hypervisor.nix ../modules/hypervisor.nix
../modules/hydra/coordinator.nix ../modules/hydra/coordinator.nix
../modules/android-cache.nix
../modules/users/friends.nix ../modules/users/friends.nix
]; ];

13
modules/android-cache.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, ... }:
let
mirrors = {
"https://android.googlesource.com" = "/var/lib/src/aosp/mirror";
"https://github.com/LineageOS" = "/var/lib/src/lineageos/LineageOS";
};
in
{
nix.envVars.ROBOTNIX_GIT_MIRRORS = lib.concatStringsSep "|" (lib.mapAttrsToList (local: remote: "${local}=${remote}") mirrors);
# Also add local mirrors to nix sandbox exceptions
nix.sandboxPaths = lib.attrValues mirrors;
}