fix system builds with binary cache disabled

This commit is contained in:
eldritch horrors 2024-03-15 13:17:25 +01:00
parent 8d36ac1d90
commit a9ce436201

View file

@ -160,6 +160,7 @@ in
# TODO(raito): we assume worker runs on coordinator. please clean up this later.
systemd.services.buildbot-worker.serviceConfig.Environment =
lib.mkIf cfg.binaryCache.enable (
let
awsConfigFile = pkgs.writeText "config.ini" ''
[default]
@ -170,7 +171,8 @@ in
[
"AWS_CONFIG_FILE=${awsConfigFile}"
"AWS_SHARED_CREDENTIALS_FILE=${cfg.binaryCache.profileCredentialsFile}"
];
]
);
systemd.services.buildbot-master = {
after = [ "postgresql.service" ];