nix/gitlab-ci: attempt to do things on Mac Mini

This commit is contained in:
Luke Granger-Brown 2021-04-09 20:03:51 +00:00
parent f1121433cf
commit a291107f62

View file

@ -22,6 +22,17 @@ let
}; };
tags = [ "cacher" ]; tags = [ "cacher" ];
}; };
nixCacheMacOS = {
stage = "build";
image = "nixos/nix:latest";
script = [
"nix run -f ./ third_party.nixpkgs.bash -c ./hack/populate_secrets.sh"
"nix build -v -f ./ci-root.nix --substituters \"https://cache.nixos.org/ s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1\""
"nix copy -v --to 's3://lukegb-nix-cache?endpoint=storage.googleapis.com' ./result"
];
tags = [ "macos" ];
};
} // (lib.mapAttrs deployStage deployMachs); } // (lib.mapAttrs deployStage deployMachs);
deployMachs = lib.filterAttrs (name: cfg: cfg.config.my.deploy.enable) depot.ops.nixos.systemConfigs; deployMachs = lib.filterAttrs (name: cfg: cfg.config.my.deploy.enable) depot.ops.nixos.systemConfigs;