raito-shared-public-infra/modules/android-cache.nix

15 lines
489 B
Nix
Raw Normal View History

2023-08-23 11:00:22 +00:00
{ lib, ... }:
let
mirrors = {
# "https://android.googlesource.com" = "/mnt/aospaosp/mirror";
2023-08-25 13:06:19 +00:00
"https://github.com/LineageOS" = "/var/lib/src/lineageos/LineageOS";
2023-08-26 17:00:04 +00:00
"https://github.com/TheMuppets" = "/var/lib/src/themuppets/TheMuppets";
2023-08-23 11:00:22 +00:00
};
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;
}