Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra_nix_config doesn't work on single-user install #97

Closed
lovesegfault opened this issue Sep 22, 2021 · 2 comments · Fixed by #109
Closed

extra_nix_config doesn't work on single-user install #97

lovesegfault opened this issue Sep 22, 2021 · 2 comments · Fixed by #109
Labels
bug Something isn't working

Comments

@lovesegfault
Copy link
Contributor

If your action uses extra_nix_config, like so:

      - uses: cachix/install-nix-action@v14
        with:
          install_url: https://nixos-nix-install-tests.cachix.org/serve/ipa0c64h689jb4ys6hxsky2r8xpld0hv/install
          install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
          extra_nix_config: experimental-features = nix-command flakes

It will only work in a daemon install. For the single-user mode, such as when using ACT, the config ends up empty.

To reproduce, create this demo.yml:

name: Demo
on: [ pull_request ]
jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - uses: cachix/install-nix-action@v14
        with:
          install_url: https://nixos-nix-install-tests.cachix.org/serve/ipa0c64h689jb4ys6hxsky2r8xpld0hv/install
          install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
          extra_nix_config: experimental-features = nix-command flakes
      - run: cat /etc/nix/nix.conf
      - uses: cachix/cachix-action@v10
        with:
          name: nix-config
          signingKey: ${{ secrets.CACHIX_SIGNING_KEY }}
      - run: cat /etc/nix/nix.conf
      - run: nix build nixpkgs#hello

and run nix-shell -p act --run "act -W demo.yml -j demo"

@domenkozar domenkozar added the bug Something isn't working label Sep 24, 2021
@domenkozar
Copy link
Member

cc @SuperSandro2000

@SuperSandro2000
Copy link
Contributor

Thanks for the reproducer. I try to take a closer look in the coming days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants