You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
384 B

#!/bin/sh
arch="$(uname -m)"
job="https://hydra.nixos.org/job/nix/master/buildStatic.$arch-linux/latest/download-by-type/file/binary-dist"
echo "Downloading from: $job"
mkdir -p "$HOME/.local/bin"
curl -L "$job" -o "$HOME/.local/bin/nix"
chmod +x "$HOME/.local/bin/nix"
mkdir -p "$HOME/.config/nix"
echo "experimental-features = nix-command flakes" >> "$HOME/.config/nix/nix.conf"