Skip to content

Commit

Permalink
Remove support for reading Nix config from flake.
Browse files Browse the repository at this point in the history
The code that extracted Nix config from flake.nix was simply too
fragile.
  • Loading branch information
rickynils committed May 31, 2024
1 parent 9af731e commit daa91ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 77 deletions.
20 changes: 0 additions & 20 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ inputs:
description: |
Don't use. For bootstrapping purposes only.
load_nixConfig:
default: true
description: |
Reads out a flakes 'nixConfig' attribute, if there is one, and loads
it into the environment config for old-style commands (`nix-build`,
`nix-store` etc) to pick it up.
If this cause undesired behaviour, you can switch it off by setting
this to false.
runs:
using: "composite"
Expand All @@ -70,16 +60,6 @@ runs:
NIX_ON_TMPFS: ${{ inputs.nix_on_tmpfs }}
GITHUB_ACCESS_TOKEN: ${{ inputs.github_access_token }}

- name: Preload nixConfig from Flake
run: ${{ github.action_path }}/read-nix-config-from-flake.sh
shell: bash
env:
LOAD_NIXCONFIG: ${{ inputs.load_nixConfig }}
NIX_VERSION: ${{ inputs.nix_version }}
GH_TOKEN: ${{ inputs.github_access_token }} # used by gh cli
OWNER_AND_REPO: ${{ github.repository }}
SHA: ${{ github.sha }}

branding:
icon: zap
color: gray-dark
57 changes: 0 additions & 57 deletions read-nix-config-from-flake.sh

This file was deleted.

0 comments on commit daa91ad

Please sign in to comment.