diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7c3ff94..bd584546 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: with: nix_path: nixpkgs=channel:nixos-20.03 - run: nix-env -iA cachix -f https://cachix.org/api/v1/install + - run: test $NIX_PATH == "nixpkgs=channel:nixos-20.03" - run: cat /etc/nix/nix.conf # cachix should be available and be able to configure a cache - run: cachix use cachix diff --git a/lib/install-nix.sh b/lib/install-nix.sh index 904f487a..8301444a 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -43,6 +43,8 @@ else # "fix" the following error when running nix* # error: the group 'nixbld' specified in 'build-users-group' does not exist add_config "build-users-group =" + mkdir -m 0755 /etc/nix + cp $workdir/nix.conf /etc/nix/nix.conf fi if [[ $INPUT_INSTALL_OPTIONS != "" ]]; then