From bd14c73f9b1af0edc65f557364b7ed20bd658236 Mon Sep 17 00:00:00 2001 From: clsty Date: Mon, 3 Nov 2025 20:38:49 +0800 Subject: [PATCH] Add vianix-warning() --- sdata/dist-nix/install-deps.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sdata/dist-nix/install-deps.sh b/sdata/dist-nix/install-deps.sh index 59a687ce8..52edf2355 100644 --- a/sdata/dist-nix/install-deps.sh +++ b/sdata/dist-nix/install-deps.sh @@ -1,6 +1,14 @@ # This script is meant to be sourced. # It's not for directly running. +function vianix-warning(){ + printf "${STY_YELLOW}Currently \"--via-nix\" will run:\n" + printf " home-manager switch --flake .#illogical_impulse\n" + printf "If you are already using home-manager, it may override your current config,\n" + printf "despite that this should be reversible.\n" + pause +} + function install_home-manager(){ # https://nix-community.github.io/home-manager/index.xhtml#sec-install-standalone local cmd=home-manager @@ -99,6 +107,9 @@ function hm_deps(){ ################################################## ################################################## + +vianix-warning + if ! command -v curl >/dev/null 2>&1;then echo -e "${STY_YELLOW}[$0]: \"curl\" not found.${STY_RST}" showfun install_curl