nexveridian-web/content/blog/forgejo-custom-nix-actions-images.md
NexVeridian 2595f525f3
All checks were successful
docker / build (push) Successful in 1m43s
feat: forgejo
2025-08-27 21:43:52 -07:00

873 B

+++ title = "Creating custom Nix Forgejo actions images" date = 2025-08-25

[taxonomies] tags = ["forgejo", "nix", "CI", "actions", "docker"] +++

Creating custom runner images

git clone ssh://git@git.nexveridian.com:222/NexVeridian/docker-nixpkgs.git

Create a copy of images/action-attic

{
  docker-nixpkgs,
  pkgs,
  attic-client,
  nodejs_24,
  nix-fast-build,
  # add more packages here
}:
(docker-nixpkgs.nix.override {
  nix = pkgs.nixVersions.latest;

  extraContents = [
    attic-client
    nodejs_24
    nix-fast-build
    # and the corresponding packages here
  ];
}).overrideAttrs
  (prev: {
    meta = (prev.meta or { }) // {
      description = "Forgejo action image, with Nix and Attic client";
    };
  })

Edit folder name in .forgejo/workflows/nix.yaml

- name: Build Nix package
  run: nix-build -A action-attic