forgejo-actions/flake.nix
Tamipes c5f67c568c
All checks were successful
Build and Push docker image / buildAndPush (push) Successful in 1m39s
feat: add my nix-cache to the full container
2026-06-04 21:49:15 +02:00

45 lines
1.7 KiB
Nix

{
description = "Base Forgejo Actions Image builder";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nix.url = "github:nixos/nix";
};
outputs = { nixpkgs, nix, self }:
let pkgs = import nixpkgs { system = "x86_64-linux"; }; in {
packages.x86_64-linux = rec {
default = nix-with-tools;
minimal-nix = import (nix + "/docker.nix") {
inherit pkgs;
extraPkgs = [ pkgs.nodejs ];
Labels = {
"org.opencontainers.image.title" = "Nix (minimal)";
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/forgejo-actions";
"org.opencontainers.image.vendor" = "Tamipes";
"org.opencontainers.image.version" = pkgs.nix.version;
"org.opencontainers.image.description" = "Nix container image with nodejs";
};
};
nix-with-tools = import (nix + "/docker.nix") {
inherit pkgs;
extraPkgs = [ pkgs.nodejs pkgs.skopeo ];
nixConf = {
extra-substituters = [ "https://nix-cache.tami.moe" ];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-cache.tami.moe:3jrWZ412K0YTFfKMJC6ftc4lsugeMVWDBiudFCAdDb8="
];
};
Labels = {
"org.opencontainers.image.title" = "Nix";
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/forgejo-actions";
"org.opencontainers.image.vendor" = "Tamipes";
"org.opencontainers.image.version" = pkgs.nix.version;
"org.opencontainers.image.description" = "Nix container image with more cli tools";
};
};
};
};
}