feat: forgejo
All checks were successful
docker / build (push) Successful in 1m43s

This commit is contained in:
Elijah McMorris 2025-08-27 19:32:29 -07:00
parent b3573bb36a
commit 2595f525f3
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
7 changed files with 829 additions and 29 deletions

View file

@ -0,0 +1,43 @@
+++
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`
```nix
{
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`
```yaml
- name: Build Nix package
run: nix-build -A action-attic
```