Adding action to add nix capabilities to docker runner #2

Open
eoghanconlon73 wants to merge 20 commits from eoghanconlon73/actions:main into main
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 44b3b2c23c - Show all commits

View file

@ -104,3 +104,5 @@ jobs:
folder: "src"
#destination: "subfolder"
```
##

View file

@ -9,3 +9,11 @@ runs:
apt update
apt upgrade
apt install sudo
- uses: https://github.com/cachix/install-nix-action@v29
with:
nix_path: nixpkgs=channel:nixos-unstable

What if someone wants to specify what version of nix to use?

The inputs fot teh install-nix-action can be found here: https://github.com/cachix/install-nix-action?tab=readme-ov-file#inputs-specify-using-with

(I honestly dont think anyone would really use this, more food to think for the future (we can revisit if someone needs it))

What if someone wants to specify what version of nix to use? The inputs fot teh install-nix-action can be found here: https://github.com/cachix/install-nix-action?tab=readme-ov-file#inputs-specify-using-with (I honestly dont think anyone would really use this, more food to think for the future (we can revisit if someone needs it))

perfect, I'll have a look into this there in a few minutes

perfect, I'll have a look into this there in a few minutes

This didn't work as I expected, it still installs nix so may be alright to be fixed in a later version of the action, though can revert back to unstable if that's preferred

This didn't work as I expected, it still installs nix so may be alright to be fixed in a later version of the action, though can revert back to unstable if that's preferred
extra_nix_config: |
trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix-cache.skynet.ie/skynet-cache https://hydra.iohk.io https://cache.nixos.org/
- shell: bash
run: nix --version