@@ -142,12 +142,46 @@ runs:
142142 mkdir -p ~/.config/nix
143143 echo "${{ inputs.extra-nix-config }}" >> ~/.config/nix/nix.conf
144144
145- - name : Install nix
145+ - name : Download and install experimental Nix installer
146146 if : inputs.skip-nix-installation == 'false'
147- uses : ./experimental-nix-installer
148- with :
149- logger : pretty
150- extra-conf : experimental-features = ca-derivations fetch-closure nix-command flakes
147+ shell : bash
148+ run : |
149+ echo "Installing Nix using experimental installer..."
150+
151+ # Download and run the experimental installer
152+ curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \
153+ sh -s -- install --no-confirm
154+
155+ # Source the nix profile to make nix available in current shell
156+ if [ -f ~/.nix-profile/etc/profile.d/nix.sh ]; then
157+ source ~/.nix-profile/etc/profile.d/nix.sh
158+ elif [ -f /etc/profile.d/nix.sh ]; then
159+ source /etc/profile.d/nix.sh
160+ fi
161+
162+ # Verify installation
163+ nix --version
164+ nix-env --version
165+
166+ - name : Add experimental Nix configuration
167+ if : inputs.skip-nix-installation == 'false'
168+ shell : bash
169+ run : |
170+ echo "Adding experimental Nix configuration..."
171+ mkdir -p ~/.config/nix
172+ echo "experimental-features = ca-derivations fetch-closure nix-command flakes" >> ~/.config/nix/nix.conf
173+ echo "Experimental configuration added to nix.conf"
174+
175+ - name : Verify Nix installation
176+ if : inputs.skip-nix-installation == 'false'
177+ shell : bash
178+ run : |
179+ echo "Verifying Nix installation..."
180+ echo "Nix version: $(nix --version)"
181+ echo "Nix store info:"
182+ nix store info || echo "Store info not available"
183+ echo "Nix channels:"
184+ nix-channel --list || echo "No channels configured"
151185
152186 - name : Get nix version
153187 shell : bash
0 commit comments