2023-08-23 11:00:22 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
mirrors = {
|
2024-01-27 18:13:04 +00:00
|
|
|
# "https://android.googlesource.com" = "/mnt/aospaosp/mirror";
|
2024-03-03 23:59:21 +00:00
|
|
|
# "https://github.com/LineageOS" = "/var/lib/src/lineageos/LineageOS";
|
|
|
|
# "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;
|
|
|
|
}
|