mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
channels,
|
|
env,
|
|
...
|
|
}:
|
|
with lib; {
|
|
name = "nodes";
|
|
|
|
nixpkgs.args.localSystem = "x86_64-linux";
|
|
nixpkgs.args.config.checkMetaRecursively = false;
|
|
|
|
ci = {
|
|
version = "v0.7";
|
|
gh-actions = {
|
|
enable = true;
|
|
};
|
|
};
|
|
channels.nixfiles.path = ../.;
|
|
|
|
nix.config = {
|
|
extra-platforms = ["aarch64-linux" "armv6l-linux" "armv7l-linux"];
|
|
#extra-sandbox-paths = with channels.cipkgs; map (package: builtins.unsafeDiscardStringContext "${package}?") [bash qemu "/run/binfmt"];
|
|
};
|
|
|
|
jobs = let
|
|
inherit ((import ./nix.nix).ci) nixosSystems;
|
|
in
|
|
mapAttrs' (k: nameValuePair "${k}") (genAttrs nixosSystems (host: {
|
|
tasks.${host}.inputs = channels.nixfiles.nixosConfigurations.${host}.config.system.build.toplevel;
|
|
}));
|
|
|
|
ci.gh-actions.checkoutOptions.submodules = false;
|
|
cache.cachix.arc = {
|
|
enable = true;
|
|
publicKey = "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=";
|
|
};
|
|
cache.cachix.gensokyo-infrastructure = {
|
|
enable = true;
|
|
publicKey = "gensokyo-infrastructure.cachix.org-1:CY6ChfQ8KTUdwWoMbo8ZWr2QCLMXUQspHAxywnS2FyI=";
|
|
signingKey = "mewp";
|
|
};
|
|
}
|