mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Sprinkle --extra-experimental-features nix-command
This commit is contained in:
parent
a7a2d56937
commit
2d4d541334
2 changed files with 7 additions and 3 deletions
|
|
@ -44,8 +44,10 @@ writeText "login-inner" ''
|
||||||
${coreutils}/bin/chmod u+w $HOME/.config/nixpkgs/nix-on-droid.nix
|
${coreutils}/bin/chmod u+w $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||||
|
|
||||||
echo "Installing first nix-on-droid generation..."
|
echo "Installing first nix-on-droid generation..."
|
||||||
${nix}/bin/nix build --no-link --file "<nix-on-droid>" nix-on-droid
|
${nix}/bin/nix --extra-experimental-features nix-command \
|
||||||
$(${nix}/bin/nix path-info --file "<nix-on-droid>" nix-on-droid)/bin/nix-on-droid switch
|
build --no-link --file "<nix-on-droid>" nix-on-droid
|
||||||
|
$(${nix}/bin/nix --extra-experimental-features nix-command \
|
||||||
|
path-info --file "<nix-on-droid>" nix-on-droid)/bin/nix-on-droid switch
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Congratulations! Now you have Nix installed with some default packages like bashInteractive, \
|
echo "Congratulations! Now you have Nix installed with some default packages like bashInteractive, \
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,9 @@ function setupPasstroughOpts() {
|
||||||
|
|
||||||
function nixActivationPackage() {
|
function nixActivationPackage() {
|
||||||
local command="$1"
|
local command="$1"
|
||||||
local extraArgs=("${@:2}" "${PASSTHROUGH_OPTS[@]}")
|
local extraArgs=("${@:2}"
|
||||||
|
--extra-experimental-features nix-command
|
||||||
|
"${PASSTHROUGH_OPTS[@]}")
|
||||||
local nix=nix
|
local nix=nix
|
||||||
if [[ -n "${FLAKE_CONFIG_URI}" ]]; then
|
if [[ -n "${FLAKE_CONFIG_URI}" ]]; then
|
||||||
nix=@nixge24@/bin/nix
|
nix=@nixge24@/bin/nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue