Files
ci-images/flake.nix
T
Greg Hellings 9f4f97ad55
Build images / Build (builder) (push) Failing after 1s
Build images / Build (immich) (push) Failing after 1s
Build images / Build (sword-container-builder) (push) Failing after 1s
buildbot/nix-eval Build done.
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
Build images / Build (vm-test) (push) Failing after 1s
Build images / Build (bitwarden) (push) Failing after 1s
Almost add flake building
2026-01-20 13:26:45 -06:00

56 lines
1.5 KiB
Nix

{
description = "Standard images that Greg wants to build";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nix2container.url = "github:nlewo/nix2container";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
inputs@{
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
};
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem =
{
pkgs,
system,
...
}:
let
lib' = import ./lib { inherit (pkgs) lib; };
in
{
_module.args = {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = lib';
};
packages =
let
inherit (pkgs) callPackage;
name = n: "registry.thehellings.com/greg/ci-images/${n}";
in
{
bitwarden = callPackage ./img/bitwarden.nix { inherit name; };
builder = callPackage ./img/builder.nix { inherit name; };
immich = callPackage ./img/immich.nix { inherit name; };
sword-container-builder = callPackage ./img/sword-container-builder.nix { inherit name; };
vm-test = callPackage ./img/vm-test.nix { inherit name; };
};
};
};
}