2024-01-22 15:50:05 -05:00
|
|
|
{config, ...}: let
|
|
|
|
inherit (config.sops) secrets;
|
|
|
|
inherit (config.arion) rwDataDir;
|
|
|
|
|
|
|
|
rwPath = rwDataDir + "/lineageos";
|
2024-01-06 22:47:50 -05:00
|
|
|
in {
|
2024-01-06 02:40:54 -05:00
|
|
|
# FIXME: crashes when building
|
2024-01-22 15:50:05 -05:00
|
|
|
# TODO: make sure it works with latest arion custom module
|
2024-01-06 02:40:54 -05:00
|
|
|
|
2024-01-22 15:50:05 -05:00
|
|
|
arion.projects."lineageos" = {
|
2024-01-06 02:40:54 -05:00
|
|
|
"builder" = {
|
|
|
|
image = "lineageos4microg/docker-lineage-cicd";
|
|
|
|
container_name = "lineage_builder";
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
BRANCH_NAME = "lineage-20.0";
|
|
|
|
DEVICE_LIST = "lemonadep";
|
|
|
|
SIGN_BUILDS = "true";
|
|
|
|
SIGNATURE_SPOOFING = "restricted";
|
|
|
|
WITH_GMS = "true";
|
|
|
|
ZIP_SUBDIR = "false";
|
|
|
|
OTA_URL = "https://ota.nelim.org/api";
|
|
|
|
CUSTOM_PACKAGES = "AuroraStore AvesLibre Droidify MJPdfReader Mull OpenCalc";
|
|
|
|
INCLUDE_PROPRIETARY = "false";
|
|
|
|
PARALLEL_JOBS = 6;
|
|
|
|
CLEAN_AFTER_BUILD = "false";
|
|
|
|
CCACHE_SIZE = "200G";
|
|
|
|
};
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
"${rwPath}/lineage/src:/srv/src"
|
|
|
|
"${rwPath}/lineage/zips:/srv/zips"
|
|
|
|
"${rwPath}/lineage/logs:/srv/logs"
|
|
|
|
"${rwPath}/lineage/cache:/srv/ccache"
|
|
|
|
"${rwPath}/lineage/keys:/srv/keys"
|
|
|
|
|
|
|
|
"${toString ./.}/manifests:/srv/local_manifests:ro"
|
|
|
|
"${toString ./.}/scripts:/srv/userscripts:ro"
|
|
|
|
"/etc/timezone:/etc/timezone:ro"
|
|
|
|
"/etc/localtime:/etc/localtime:ro"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"OTA-server" = {
|
|
|
|
container_name = "lineageOTA";
|
|
|
|
image = "docker.io/julianxhokaxhiu/lineageota";
|
|
|
|
volumes = [
|
|
|
|
"${rwPath}/lineage/zips:/var/www/html/builds/full:ro"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"caddy" = {
|
|
|
|
image = "quay.io/slothcroissant/caddy-cloudflaredns:latest";
|
|
|
|
|
|
|
|
ports = [
|
|
|
|
"80:80"
|
|
|
|
"443:443"
|
|
|
|
];
|
|
|
|
|
|
|
|
volumes = [
|
|
|
|
"${rwPath}/caddy/data:/data"
|
|
|
|
"${rwPath}/caddy/config:/config"
|
|
|
|
|
|
|
|
"${toString ./.}/Caddyfile:/etc/caddy/Caddyfile:ro"
|
|
|
|
];
|
|
|
|
|
2024-01-06 22:47:50 -05:00
|
|
|
env_file = [secrets.caddy-cloudflare.path];
|
2024-01-06 02:40:54 -05:00
|
|
|
environment = {
|
|
|
|
CLOUDFLARE_EMAIL = "matt@nelim.rg";
|
|
|
|
ACME_AGREE = "true";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|