mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2024-11-23 20:19:16 +01:00
Thin Forgejo Actions to streamline common Nix tasks.
81d8c45ea2
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu> |
||
---|---|---|
.forgejo/workflows | ||
build | ||
develop | ||
install | ||
shell | ||
.gitignore | ||
COPYING.md | ||
README.md |
actions/nix
This repository provides a number of Forgejo Actions, all aimed at making it more pleasant to work with both Nix (either by running under NixOS, or using the Nix package manager on its own). The provided actions are listed below. All examples show the default inputs, unless otherwise specified. If the defaults are fine, those inputs can be safely omitted.
actions/nix/install
Usage
- name: Install Nix on the host
uses: actions/nix/install@main
with:
install-url: "https://nixos.org/nix/install"
actions/nix/build
Usage
- name: Build a Nix package
uses: actions/nix/build@main
with:
flake: .
package: # there's no default, Nix itself will fall back to "default"
logs: false
actions/nix/develop
Usage
- name: Run something in a development environment
uses: actions/nix/develop@main
with:
flake: .
package: # no default, see above
run: |
# No default here, either!
The commands specified in the run
input will be written to a shell script, and the shell script will be executed with bash -eo pipefail
.
actions/nix/shell
Usage
- name: Run something in a Nix shell
uses: actions/nix/shell@main
with:
flake: .
package: # no default, see above
run: |
# No default here, either!
The commands specified in the run
input will be written to a shell script, and the shell script will be executed with bash -eo pipefail
.