We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0745d89 commit 1df68a2Copy full SHA for 1df68a2
bootstrap.sh
@@ -80,16 +80,27 @@ ensure_repo() {
80
update_existing_repo || clone_repo
81
}
82
83
+ensure_nix_conf() {
84
+ conf_dir="$HOME/.config/nix"
85
+ conf_file="$conf_dir/nix.conf"
86
+ mkdir -p "$conf_dir"
87
+ if [ ! -f "$conf_file" ] || ! grep -q "experimental-features" "$conf_file"; then
88
+ echo "experimental-features = nix-command flakes" >> "$conf_file"
89
+ fi
90
+}
91
+
92
main() {
93
require_git
94
ensure_checkout_dir
95
ensure_repo
96
cd "$CHECKOUT_DIR"
97
98
if ! command -v nix >/dev/null 2>&1; then
- sh ./nix/install.sh
99
+ bash ./nix/install.sh
100
fi
101
102
+ ensure_nix_conf
103
104
if [ "${IN_NIX_SHELL:-}" = "1" ]; then
105
bash ./nix/setup-internal.sh
106
else
0 commit comments