Skip to content

Commit af03871

Browse files
committed
saner
1 parent 19a34bc commit af03871

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Linux/install_nix.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ if [[ "$(uname -m | tr -d '[:space:]')" == "riscv64" ]]; then
2929
#Enable Experimental Features
3030
sudo mkdir -p "/etc/nix"
3131
echo "experimental-features = nix-command flakes" | sudo tee -a "/etc/nix/nix.conf"
32-
mkdir -p "${HOME}/.config"
32+
echo "require-sigs = false" | sudo tee -a "/etc/nix/nix.conf"
33+
echo "substituters = https://cache.nixos.org/ https://cache.nichi.co https://cache.ztier.in" | sudo tee -a "/etc/nix/nix.conf"
34+
echo "trusted-substituters = https://cache.nixos.org/ https://cache.nichi.co https://cache.ztier.in" | sudo tee -a "/etc/nix/nix.conf"
35+
mkdir -p "${HOME}/.config/nix"
3336
ln -fsv "/etc/nix/nix.conf" "${HOME}/.config/nix/nix.conf"
3437
else
3538
##https://github.com/DeterminateSystems/nix-installer
@@ -53,7 +56,10 @@ else
5356
export NIXPKGS_ALLOW_UNFREE="1"
5457
export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM="1"
5558
#Update Channels
56-
nix --version && nix-channel --list && nix-channel --update
59+
nix --version
60+
nix-channel --add "https://nixos.org/channels/nixos-unstable" "nixedge"
61+
nix-channel --list && nix-channel --update
62+
nix registry add "nixpkgs" "github:NixOS/nixpkgs/nixpkgs-unstable" ; nix registry list
5763
#Seed Local Data
5864
nix derivation show "nixpkgs#hello" --impure --refresh --quiet
5965
#Build Bash (triggers bootstrap)

0 commit comments

Comments
 (0)